Get Workflow Service Connections
The Get All Service Workflow Connections API endpoint allows administrators to retrieve all associations between workflows and services within their organisation. By providing a comprehensive view of these connections, this endpoint ensures seamless integration and enhances operational clarity. leveraging this feature improves task coordination, streamlines service tracking, and promotes consistency across teams. It simplifies the management of workflows and services, making it a vital tool for organisations aiming to optimise processes and align operations with their business objectives.
To enhance flexibility, this endpoint supports additional parameters to limit the number of results returned, ensuring efficient data handling. A continuation token can also be used to paginate through large datasets, allowing you to retrieve workflows in manageable chunks for improved performance and scalability.
Syntax: see 'CCall Structure
Type = 'GET'
'https://connect.cambrionix.com/api/workflows/v1/workflows/workflow-id/services?token=token&limit=return-number' |
Output | Description |
---|---|
workflow-id | This is the id of the workflow as a unique 128-bit number |
token | Continuation token |
return-number | Number of records to return |
Returns:
{ "result": { "id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "organization": { "id": "organisation-id", "name": "organisation-name" }, "service": { "id": "workflow-service-id", "type": "service-type" }, "workflow": { "created": { "time": time, "user": { "id": "user-id", "detail": { "givenName": "given-name", "surname": "surname", "displayName": "display-name", "email": "account-email" } } }, "updated": { "time": time, "user": { "id": "user-id", "detail": { "givenName": "given-name", "surname": "surname", "displayName": "display-name", "email": "account-email" } } }, "ttl": time, "id": "workflow-id", "name": "workflow-name", "description": "workflow-description", "events": "string", "connections": [ { "id": "unique-connection-id", "type": "connection-type", "from": { "id": "unique-event-id" }, "to": { "id": "unique-event-id" } } ], "enabled": option-status, "published": option-status, "organization": { "id": "organisation-id", "name": "organisation-name" } }, "downloaded": { "time": time } } } } } |
Output | Description |
---|---|
time | The hub time, shown as an integer in ms |
user-id | This is the id of the user as a unique 128-bit number |
given-name | The first name of the user |
surname | The surname of the user |
display-name | The account name of the user |
account-email | The email of the user |
workflow-id | This is the id of the workflow as a unique 128-bit number |
workflow-name | This is the name of the workflow |
workflow-description | This is a description of the workflow |
unique-connection-id | This is the id of a unique connection as a unique 128-bit number |
connection-type | This is the type of connection e.g. success |
unique-event-id | This is the id of a unique event as a unique 128-bit number |
option-status | The status of the option (true/false) |
organisation-id | This is the id of the organisation as a unique 128-bit number |
organisation-name | This is the name of the organisation |
Example
curl -X 'GET' \
'https://connect.cambrionix.com/api/workflows/v1/workflows/00000000-0000-0000-0000-000000000000/services?limit=10' \
-H 'accept: application/json' \
-H 'Authorization: Bearer eyJCG-STg'
Returns
{
"result": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"organization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
},
"service": {
"id": "string",
"type": "workflow"
},
"workflow": {
"created": {
"time": 0,
"user": {
"id": "string",
"detail": {
"givenName": "string",
"surname": "string",
"displayName": "string",
"email": "string"
}
}
},
"updated": {
"time": 0,
"user": {
"id": "string",
"detail": {
"givenName": "string",
"surname": "string",
"displayName": "string",
"email": "string"
}
}
},
"ttl": 0,
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string",
"description": "string",
"events": "string",
"connections": [
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"type": "success",
"from": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
},
"to": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
}
],
"enabled": true,
"published": true,
"organization": {
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"name": "string"
}
},
"downloaded": {
"time": 0
}
}
}
Errors
If there is an error in the API method then JSON-RPC Error Object a will be returned