Gestiono
Referencia de APIAccounting / Division

Create Division

← Back to full API reference
POST/v1/divisionAuth required
  • Validated by Zod schema: postDivision.

Request details

Body fields

FieldRequiredDescription
nameYesType: string
typeYesEnum-like validator generated by zodFromObj
subDivisionOfYesType: number
pictureNoType: string
metadataNoType: unknown

Default payloads

Path params

json
{}

Query

json
{}

Body

json
{
  "name": "string",
  "type": "string",
  "subDivisionOf": 1
}

Sample response

json
{
  "divisionId": "<divisionId>"
}