INSTANCE-ATTRIBUTE
This method returns data of a workflow and an attribute using a REST endpoint.
GET /apigateway/se/exp/chatbot/api/instance-attribute.php
Query parameters:
Query parameters | Type | Required | Description |
---|---|---|---|
cdProduct | Numeric | Yes | Process automation component code (39 for Workflow) |
idInstance | String | Yes | Process instance ID # (WFPROCESS.IDPROCESS ) |
cdAttribute | Numeric | Yes | Primary key of the attribute (ADATTRIBUTE.CDATTRIBUTE ) |
fgLanguage | Numeric | No | Attribute language code |
Example request:
curl -X GET 'https://my-domain.softexpert.com/apigateway/se/exp/chatbot/api/instance-attribute.php?cdProduct=39&idInstance=420008&cdAttribute=410' \
-H 'Authorization: <your_api_token>' \
Example response:
200 OK
{
"success": true,
"response": {
"oid": "574721",
"identifier": "420008",
"title": "Your Title Instance",
"processStatus": "Progress",
"deadline": "In day",
"slaStatus": "Not applicable",
"instanceStatus": " - ",
"automationProductCode": 39,
"fgStatus": 1,
"fgSlaStatus": null,
"fgDeadline": 1,
"attribute_410": {
"attributeOid": 410,
"dataType": 1,
"multivalued": false,
"title": "Component",
"type": 1,
"value": [
{
"value": "13",
"label": "Performance",
"title": "Performance",
"type": "1"
}
]
}
}
}