Skip to content

patchState

Request

Path
idinteger, (int32)required
Bodyapplication/jsonrequired
property name*anyadditional property
PATCH
/api/v1/state/{id}
curl -i -X PATCH \
  'https://api.prana.software/api/v1/state/{id}' \
  -H 'Content-Type: application/json' \
  -d '{
    "property1": null,
    "property2": null
  }'

Responses

OK

Bodyapplication/json
idinteger, (int32)required

Unique identifier of the object

Default:""
countryobject(ApiCountryListReadDto)required

Associated country information.

Default:""
codestring, non-emptyrequired

State code.

Default:""
Example:"28"
agencyobject(ApiAgencyListReadDto)

Associated agency information.

Default:""
descriptionstring

State description.

Default:""
Example:"Madrid"
prefixstring

State prefix.

Default:""
Example:"M"
accountobject(ApiChartAccountListReadDto)

Associated chart account information.

Default:""
intrastatCodestring

Intrastat code for the state.

Default:""
Example:"28"
targetinteger

Target value for the state.

Default:""
isoCodestring, [ 0 .. 5 ] characters

ISO state code.

Default:""
Example:"ES-M"
cycstring

CYC code.

Default:""
Example:"28"
Response
{ "id": "", "country": null, "code": "28", "agency": { "id": "", "code": "AG001", "name": "Fast Transport Agency" }, "description": "Madrid", "prefix": "M", "account": { "id": "", "code": "1000", "description": "Cash account", "cif": "B12345678", "active": true, "color": "#FF5733", "parentCode": "100", "parentDescription": "Assets" }, "intrastatCode": "28", "target": "", "isoCode": "ES-M", "cyc": "28" }