| Requires any of the roles: | Admin, TenantAdmin, TaskAdmin |
| PUT | /tasklist/template | Updates a task list template. |
|---|
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| TaskListTemplateId | body | string | Yes | Tasklist template ID |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Priority | form | TaskListPriority | Yes | TaskListPriority, ranking this tasklist template amid others.Allowable Values
|
| Name | form | string | Yes | The list template's name. |
| Categories | form | array | No | Tags under which to categorize the tasklist. |
| AccessTemplateId | form | string | No | Access template ID. |
| Instructions | form | string | No | Instructions on how to complete the task list. |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| Version | form | integer | No | Api version |
| Name | Value |
|---|---|
| None | 0 |
| VeryLow | 10 |
| Low | 20 |
| Medium | 30 |
| High | 40 |
| VeryHigh | 50 |
| Critical | 60 |
| Name | Value |
|---|---|
| Cleaning | 10 |
| Maintenance | 20 |
| Disinfection | 30 |
| Inspection | 40 |
| Security | 50 |
| Name | Parameter | Data Type | Required | Description |
|---|---|---|---|---|
| ResponseStatus | form | ResponseStatus | No |
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /tasklist/template HTTP/1.1
Host: api.4spaces.io
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{"taskListTemplateId":"00000000000000000000000000000000","priority":0,"name":"String","categories":[10],"accessTemplateId":"00000000000000000000000000000000","instructions":"String","version":0}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}