Create a new workflow definition and its first version using the exported JSON document of an existing workflow version.
You must be assigned the Workflow Manage Access permission to run this operation.
Idempotency-Key | string <= 255 characters Specify a unique idempotency key if you want to perform an idempotent POST or PATCH request. Do not use this header in other request types. With this header specified, the Zuora server can identify subsequent retries of the same request using this value, which prevents the same operation from being performed multiple times by accident. |
Accept-Encoding | string Include the If specified, Zuora automatically compresses responses that contain over 1000 bytes of data, and the response contains a |
Content-Encoding | string Include the |
Authorization required | string The value is in the |
Zuora-Track-Id | string <= 64 characters A custom identifier for tracing the API call. If you set a value for this header, Zuora returns the same value in the response headers. This header enables you to associate your system process identifiers with Zuora API calls, to assist with troubleshooting in the event of an issue. The value of this field must use the US-ASCII character set and must not include any of the following characters: colon ( |
Array of objects (Linkage) | |
Array of objects (Task) | |
object (workflow) A workflow. |
OK
{- "linkages": [
- {
- "linkage_type": "Start",
- "source_task_id": 0,
- "source_workflow_id": 0,
- "target_task_id": 0
}
], - "tasks": [
- {
- "action_type": "Approval",
- "call_type": "string",
- "concurrent_limit": 0,
- "data": { },
- "end_time": "string",
- "error": "string",
- "error_class": "string",
- "error_details": "string",
- "id": 0,
- "instance": true,
- "name": "string",
- "object": "string",
- "object_id": "string",
- "original_task_id": 0,
- "original_workflow_id": 0,
- "parameters": { },
- "start_time": "string",
- "status": "Queued",
- "tags": [
- "string"
], - "task_id": 0,
- "workflow_id": 0
}
], - "workflow": {
- "calloutTrigger": true,
- "createdAt": "string",
- "description": "string",
- "id": 0,
- "interval": "string",
- "name": "string",
- "ondemandTrigger": true,
- "scheduledTrigger": true,
- "timezone": "string",
- "type": "Workflow::Setup",
- "updatedAt": "string",
- "version": "string"
}
}
{- "calloutTrigger": true,
- "createdAt": "2019-10-03T14:14:39.139Z",
- "description": "",
- "id": 403,
- "interval": null,
- "name": "Call Echo",
- "ondemandTrigger": true,
- "scheduledTrigger": false,
- "timezone": null,
- "type": "Workflow::Setup",
- "updatedAt": "2019-10-03T14:14:39.139Z",
- "version": "0.0.1"
}