Docs

Add Procurement Resource

POST /procurements/{id}/resources

POST/procurements/{id}/resources

Adds a need to a procurement. Required Variant-role attribute values must be present. Resource type ids come from ResourceTypes_Get, area ids from Events_GetAreas, collaborator ids from Events_GetCollaborators and group ids from Procurements_GetProcurement. If owner is omitted it is seeded from the type's defaultOwner. A resource type whose trackingType is Composite fans out: the response carries the composite parent plus one component need per slot, each with the parent's quantity times the slot's quantity and no schedule blocks; rateCardId and ruleSetIds apply to the parent only, and a composite's quantity must be a whole number of at least 1. An organization-level procurement (org token, resource inventory edit) takes scheduleBlocks as the need's plan; area, collaborator, rate card, group and rule sets are event-only there.

Path Parameters

FieldTypeRequiredDescription
iduuidRequired

Request Body

FieldTypeRequiredDescription
resourceTypeIduuidOptional
quantitynumberOptional
areaIduuidOptional
collaboratorIduuidOptional
rateCardIduuidOptional
groupIduuidOptional
owneruuidOptional
ruleSetIdsuuid[]Optional
attributeValuesAddProcurementResourceRequestAttributeValue[]Optional
scheduleBlocksAddProcurementResourceRequestBlock[]Optional

AddProcurementResourceRequestAttributeValue

FieldTypeDescription
resourceAttributeIduuid
valueJsonElement| null

AddProcurementResourceRequestBlock

FieldTypeDescription
typeIduuid
namestring| null
startDateTimedate-time
endDateTimedate-time
notesstring| null

Response

FieldTypeDescription
iduuid
childrenAddProcurementResourceResponseChild[]| null

AddProcurementResourceResponseChild

FieldTypeDescription
iduuid
componentIduuid
componentLabelstring| null
resourceTypeIduuid
quantitynumber
allowedResourceVariantIdsuuid[]| null