Agrofin
Endpoints

PUT /api/v1/admin/programs/{program_id}

PUT /api/v1/admin/programs/{program_id}

Request Body

application/json
object
  • slug string

    Must match the regex /1+(?:-[a-z0-9]+)*$/. validation.max.


    1. a-z0-9 

  • program_sector_id integer nullable

    Must match an existing stored value.

  • sector string
    Allowed values cotton wheat seed_wheat commodity_wheat machinery fruit potato greenhouse oilseed livestock fishery
  • kind string
    Allowed values credit leasing subsidy
  • title object
  • summary object nullable
  • body object nullable
  • required_documents object nullable
  • legal_document_id integer nullable

    Must match an existing stored value.

  • status integer
    Allowed values 1 0
  • sort_order integer

    validation.min.