Set Resource Approval
POST /advanceRequests/{advanceRequestId}/resourceApproval
/advanceRequests/{advanceRequestId}/resourceApprovalRequired Tokens
| Field | Type | Required | Description |
|---|---|---|---|
| Bearer | Authorization: Bearer <api-key> | Optional | Your API key. Pass it as the Bearer token on every request. |
| Event token | x-Event-Token | Optional | Run **Get Tokens** in the Authorization folder, or call `GET /Events/{eventId}/authorize` manually. |
Sets the resource-side approval decision on an advance request. This represents approval from the resource provider side (e.g., confirming that a requested resource can be supplied).
If the request is already linked to a procurement (procurementId is set), this call will fail — procurement-linked requests are considered finalized and their approval status cannot be changed.
When approval changes, if the request's advance module has task tracking enabled, the linked task is automatically moved to the Needs Review status and parent task statuses are recalculated.
Returns the updated approval state for both advanceApproved and resourceApproved.
Event scoping: These endpoints do not include {eventId} in the URL. The event is determined automatically from your x-Event-Token — the API uses it to know which event's data to return. Ensure you have a valid event token before making any calls in this folder.
Path Parameters
| Field | Type | Required | Description |
|---|---|---|---|
| advanceRequestId | Guid | Required | The ID of the advance request to approve or reject. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| isApproved | bool \ | Optional | ✔️ |
| reason | string \ | Optional | ❌ |
Example Response
{
"advanceApproved": true,
"resourceApproved": true
}
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
UNAUTHORIZED | 401 | Missing or invalid token. |
NOT_FOUND | 404 | Advance request not found for this event. |
BAD_REQUEST | 400 | Request is linked to a procurement and cannot be changed. |