Referencia de APIResources / Record
Create Record bulk
← Back to full API reference
POST
/v1/resource/record/bulkAuth required- Validated by Zod schema: postBulkResourceRecord.
Request details
Body fields
| Field | Required | Description |
|---|---|---|
| type | Yes | Type: enumExample: IN |
| description | No | Type: string |
| divisionId | Yes | Type: number |
| destinationDivisionId | No | Type: number |
| records | Yes | Type: arrayExample: |
| records[] | Yes | Type: object |
| records[].resourceId | Yes | Type: number |
| records[].quantity | No | Type: number |
| records[].beneficiaryId | No | Type: number |
| records[].state | No | Type: enumExample: CONFIRMED |
| records[].expiryDate | No | Type: stringExample: |
| records[].serialNumbers | No | Type: arrayExample: |
| records[].serialNumbers[] | Yes | Type: string |
Default payloads
Path params
json
{}Query
json
{}Body
json
{
"type": "IN",
"divisionId": 1,
"records": [
{
"resourceId": 1
}
]
}Sample response
json
"<result>"