Get User Form by Task ID
Endpoint: GET /api/human/template/{humanTaskId}
Retrieves the user form associated with a Human task using its task ID.
Path parameters
Parameter | Description | Type | Required/ Optional |
---|---|---|---|
taskId | The unique identifier for the Human task execution. | string | Required. |
Response
Returns the user form for the Human task.
Examples
Get a user form using a Human task ID
Request
curl -X 'GET' \
'https://<YOUR_CLUSTER>/api/human/template/b5070997-d326-11ef-a7d0-3e3f9199f5b3' \
-H 'accept: application/json' \
-H 'X-Authorization: <TOKEN>''
Response
{
"createTime": 1736409506524,
"updateTime": 1736409506524,
"createdBy": "USER:user@example.com",
"updatedBy": "USER:user@example.com",
"name": "formSubmission",
"version": 1,
"jsonSchema": {
"$schema": "http://json-schema.org/draft-07/schema",
"properties": {
"enterAssets": {
"type": "string"
},
"Confirm approval": {
"type": "boolean"
}
}
},
"templateUI": {
"type": "VerticalLayout",
"elements": [
{
"type": "Control",
"scope": "#/properties/enterReason",
"label": "Enter reason for approval"
},
{
"type": "Control",
"scope": "#/properties/Confirm",
"options": {}
}
]
}
}