The Get task revision operation will return a list of task' revisions.
Request
Request URI
Method | Request URI |
---|---|
GET | https://{company-name}.helloid.com/api/v1/automationstore/tasks/{taskId}/revisions |
Request parameters
Parameter | Description |
---|---|
{company-name} | The company name of the target company |
{taskId} | The id (GUID) of the task |
Request headers
Header | Description |
---|---|
Content-Type | Required. Must be set to application/json. |
Response
Response status
Code | Description |
---|---|
200(OK) | Indicates that the operation was successful and the resource is created. |
400(BAD REQUEST) | Indicates that the operation was not successful. The content type was incorrect or the request body was malformed. |
401(UNAUTHORIZED) | Indicates that no authentication header was given or the api key and secret were invalid. If the api key and secret were valid check the configuration in your portal, it is possibilty these were IP restricted or are disabled. |
409(CONFLICT) | Indicates that the operation was not successful. If there were validation errors, the response will include an error result. |
Please also see error result.
Please also see common HTTP status codes.
Response parameters
The response contains a list of variable objects.
Variable object
Parameter | Description |
---|---|
id | The GUID of the revision. |
automationTaskId | The GUID of the task. |
modifiedOn | The date the task was modified |
versionMajor | The revision's major version number (1.0.3) |
versionMinor | The revision's minor version number (1.0.3) |
versionPatch | The revision's patch version number (1.0.3) |
version | The specific version number |
executionType | |
executionEntry | |
metaData |
Sample response body
[
{
"id": "3df6c5d8-aec6-408a-8e24-11c3ea708f8c",
"automationTaskId": "aa8f7da1-1c57-490e-b054-ca96df77c361",
"modifiedOn": "2018-02-07T10:34:54.648",
"versionMajor": 1,
"versionMinor": 0,
"versionPatch": 3,
"version": "1.0.3",
"contexts": "",
"categories": "",
"metaData": ""
}
]
Example request with cURL
Replace placeholder values surrounded by {
}
with the actual values.
curl -u {api-key}:{api-secret} -X GET https://{company-name}.helloid.com/api/v1/automationstore/tasks/{taskId}/revisions