PATCH/module-templates/{moduleTemplateId}/blocks/{blockId}
Rewrites the payload of an existing block, which must match the block's own type (the type itself cannot
change). Use AdvanceTemplates_UpdateOrgModuleTemplateBlockIndex to move it; the blockId comes from
AdvanceTemplates_GetOrgModuleTemplate. Needs AdvanceTemplate.Edit at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|
| moduleTemplateId | uuid | Required | |
| blockId | uuid | Required | |
Request Body
| Field | Type | Required | Description |
|---|
| content | UpdateOrgModuleTemplateBlockRequestContentPayload | Optional | |
| question | UpdateOrgModuleTemplateBlockRequestQuestionPayload | Optional | |
| request | UpdateOrgModuleTemplateBlockRequestRequestPayload | Optional | |
UpdateOrgModuleTemplateBlockRequestContentPayload
| Field | Type | Description |
|---|
| content | string| null | |
UpdateOrgModuleTemplateBlockRequestQuestionPayload
| Field | Type | Description |
|---|
| label | string| null | |
| questionText | string| null | |
| responseType | string| null | |
| responseOptions | UpdateOrgModuleTemplateBlockRequestOptionPayload[]| null | |
UpdateOrgModuleTemplateBlockRequestRequestPayload
| Field | Type | Description |
|---|
| name | string| null | |
| lineItemLabel | string| null | |
| isAdvanceApproved | boolean | |
| isResourceApproved | boolean | |
| isResourceRequest | boolean | |
| allowedResourceTypes | uuid[]| null | |
UpdateOrgModuleTemplateBlockRequestOptionPayload
| Field | Type | Description |
|---|
| label | string| null | |
| type | string| null | |
| value | string| null | |