Templates
Retrieve templates data.
This API version is deprecated and will be removed in future releases. We recommend you to use the V2 version of this API, which is available at /rest/assessments/v2. Returns a list of all available templates. The templates are sorted by name in alphabetical order.
This API requires Basic HTTP authentication.
The name of the template.
The value is case-insensitive and it returns results that contain this value.
The status of the template.
Possible values are: DRAFT, PUBLISHED or OBSOLETE. The value is case-insensitive. An invalid value results in an error response.
The ID of the asset type.
Whether it should only return the latest version of each template. The interaction with the status parameter is as follows:
- If the
statusparameter is not set, it returns the latest version of each template regardless of the status. - If the
statusparameter is set toPUBLISHED, it returns the latest published version of each template. - If the
statusparameter is set toDRAFT, it returns the latest draft version of each template. - If the
statusparameter is set toOBSOLETE, it returns the latest obsolete version of each template.
The maximum number of resources to retrieve.
If not set, the default limit of 10 is be used. The maximum value for this parameter is 50.
10The cursor pointing to the first resource to be included in the response. This cursor cannot be created and must have been extracted from a response returned by a previous API call.
If this parameter is missing, the API returns the resources starting from the first available resource, at index 0.
Example of a response for listing templates.
A page object containing templates.
The cursor pointing to the next page. If the cursor is missing, there are no additional pages of resources available after the current one.
Y3Vyc29yV2hlblRoZXJlSXNNb3JlRGF0YQoThe request is not valid.
The client is not authenticated.
The user lacks permissions.
There was an error processing the request.
GET /rest/assessments/v1/templates HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"results": []
}This API version is deprecated and will be removed in future releases. We recommend you to use the V2 version of this API, which is available at /rest/assessments/v2. Returns the latest published version of a template for the specified template Id.
This API requires Basic HTTP authentication.
The ID of the template.
Example of a response for get template.
A base template object.
The ID of the template.
c8643d4d-f9f8-4484-b9c2-d0f3432e295fThe name of the template.
Legal ChecksThe version of the template.
1The status of the template.
PUBLISHEDFlag to indicate if notifications are on or off for the template.
trueThe resource roles that are allowed to start an assessment from this template. Only applies to templates linked to an asset type. When empty, anyone with the conduct assessments permission can start.
d0a3f2b6-1e2d-4c0a-9f5e-6b7c8d9e0f11The retake flow is set on a template and dictates how assessments of that template are retaken. Possible values are:
Ootb: use the out-of-the-box retake flow.CustomWorkflow: use a custom workflow to retake the assessment.
The Flowable workflow definition key to trigger when retakeFlow is CustomWorkflow. This field is ignored when retakeFlow is set to any other value.
7460c00f-3b12-4238-b68d-4ec4ea8bf9f7The request is not valid.
The client is not authenticated.
The user lacks permissions.
Resource not found.
There was an error processing the request.
GET /rest/assessments/v1/templates/{id} HTTP/1.1
Authorization: Basic username:password
Accept: */*
{
"id": "c8643d4d-f9f8-4484-b9c2-d0f3432e295f",
"name": "Legal Checks",
"version": 1,
"status": "PUBLISHED",
"notification": true,
"assetType": {
"id": "0b781899-3dd2-4746-bc98-65daef8f1efa",
"name": "Business Process"
}
}Last updated
Was this helpful?