Docs
Add Resource
POST /procurements/{procurementId}/resources
POST
/procurements/{procurementId}/resourcesRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
Adds a new resource to an existing procurement. The resource type determines which properties and sub-assets are applicable.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| procurementId | Guid | Required | The ID of the procurement. Replace `{{procurementId}}` in the URL. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| resourceTypeId | Guid | Required | ID of the resource type to create. |
| quantity | int | Required | Number of units available. |
| properties | Prop[] | Optional | Resource-level property values (`{ templatePropertyId, value }`). Pass `[]` for none. |
| subAssets | SubAsset[] | Optional | Sub-assets for this resource, each with their own `properties` array. Pass `[]` for none. |
Response
Returns 201 Created with an empty body on success.