GET/module-templates/{moduleTemplateId}
Returns one module template with its content, question and request blocks in block order. Use
AdvanceTemplates_GetOrgModuleTemplates to find the moduleTemplateId. Needs AdvanceTemplate.View at the organization.
Path Parameters
| Field | Type | Required | Description |
|---|
| moduleTemplateId | uuid | Required | |
Response
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| label | string| null | |
| icon | string| null | |
| color | string| null | |
| category | GetOrgModuleTemplateResponseCategoryInfo| null | |
| blocks | GetOrgModuleTemplateResponseBlockInfo[]| null | |
GetOrgModuleTemplateResponseCategoryInfo
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| icon | string| null | |
| color | string| null | |
GetOrgModuleTemplateResponseBlockInfo
| Field | Type | Description |
|---|
| id | uuid | |
| index | integer | |
| type | string| null | |
| content | GetOrgModuleTemplateResponseContentInfo| null | |
| question | GetOrgModuleTemplateResponseQuestionInfo| null | |
| request | GetOrgModuleTemplateResponseRequestInfo| null | |
GetOrgModuleTemplateResponseContentInfo
| Field | Type | Description |
|---|
| content | string| null | |
GetOrgModuleTemplateResponseQuestionInfo
| Field | Type | Description |
|---|
| id | uuid | |
| label | string| null | |
| questionText | string| null | |
| responseType | string| null | |
| responseOptions | GetOrgModuleTemplateResponseOptionInfo[]| null | |
GetOrgModuleTemplateResponseRequestInfo
| Field | Type | Description |
|---|
| id | uuid | |
| name | string| null | |
| lineItemLabel | string| null | |
| isAdvanceApproved | boolean | |
| isResourceApproved | boolean | |
| isResourceRequest | boolean | |
| allowedResourceTypeIds | uuid[]| null | |
| requestProperties | GetOrgModuleTemplateResponsePropertyInfo[]| null | |
GetOrgModuleTemplateResponseOptionInfo
| Field | Type | Description |
|---|
| label | string| null | |
| type | string| null | |
| value | string| null | |
GetOrgModuleTemplateResponsePropertyInfo
| Field | Type | Description |
|---|
| id | uuid | |
| index | integer | |
| label | string| null | |
| isRequired | boolean | |
| responseType | string| null | |
| responseOptions | GetOrgModuleTemplateResponseOptionInfo[]| null | |