Docs

Add Block Response

POST /collaborators/{collaboratorId}/advances/{advanceId}/modules/{moduleId}/blocks/{blockId}

POST/collaborators/{collaboratorId}/advances/{advanceId}/modules/{moduleId}/blocks/{blockId}

Required Tokens

FieldTypeRequiredDescription
BearerAuthorization: Bearer <api-key>OptionalYour API key. Pass it as the Bearer token on every request.

Submits or updates a collaborator's response to a specific block within an advance module. A block can be a question or a resource request — supply the appropriate field and leave the other null.

Path Parameters

FieldTypeRequiredDescription
collaboratorIdGuidRequiredThe ID of the collaborator.
advanceIdGuidRequiredThe ID of the advance. Set `{{advanceId}}` in your environment.
moduleIdGuidRequiredThe ID of the advance module. Set `{{moduleId}}` in your environment or replace inline.
blockIdGuidRequiredThe ID of the module template block being answered. Replace inline.

Request Body

Provide either question or request — not both. Set the unused field to null.

Question response

FieldTypeRequiredDescription
question.valuestringRequiredThe collaborator's answer text.

Resource request response

FieldTypeRequiredDescription
request.idGuidRequiredID of the existing request to update. Use `{{$guid}}` for a new response.
request.isDeletedboolRequiredPass `true` to retract the request.
request.assetobjectOptionalAsset details if this is an asset request.
request.asset.assetTypeIdGuidRequiredAsset type ID.
request.asset.providerIdGuidRequiredProvider ID.
request.asset.payorIdGuidRequiredPayor ID.
request.asset.propertiesProp[]OptionalAsset-level properties (`{ templatePropertyId, value }`).
request.asset.subAssetsSubAsset[]OptionalSub-assets, each with their own `properties` array.
request.propertiesProp[]OptionalRequest-level properties (`{ templatePropertyId, value }`).

Response

Returns 201 Created with the saved response object.

FieldTypeDescription
questionobjectSaved question response if a question was submitted. Contains `id`, `advanceModuleId`, `moduleTemplateBlockId`, `questionTemplateId`, `taskId`, `taskStatusId`, `value`.
requestobjectSaved resource request response if a request was submitted. Contains approval flags, `taskId`, `taskStatusId`, `asset`, and `properties`.