Gestiono
Referencia de APIResources / Record

Create Record

← Back to full API reference
POST/v1/resource/recordAuth required
  • Validated by Zod schema: postResourceRecord.

Request details

Body fields

FieldRequiredDescription
resourceIdYesType: number
divisionIdYesType: number
destinationDivisionIdNoType: number
typeYesType: enumExample: IN
quantityNoType: number
descriptionNoType: string
beneficiaryIdNoType: number
stateNoType: enumExample: CONFIRMED
productionIdNoType: number
expiryDateNoType: stringExample:
serialNumbersNoType: arrayExample:
serialNumbers[]YesType: string

Default payloads

Path params

json
{}

Query

json
{}

Body

json
{
  "resourceId": 1,
  "divisionId": 1,
  "type": "IN"
}

Sample response

json
"<result>"