Workflow
Stop a workflow
Stop a running workflow.
post/workflow/runs/{workflow-id}/stop
Request
- Base URLhttps://app.amperity.com/api
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workflow-idstring required
Example:wf-20240905-66170-6HPlbJ
The workflow ID. Use GET /workflow/runs to list workflow IDs, or copy one from the Workflows page in Amperity.
Query parameters
api_versionstring
A supported version of the Amperity API. You may use the api-version request header instead of the api_version request parameter.
Headers
Amperity-Tenantstring required
The ID for the tenant to which a request will be sent.
Api-Versionstring required
A supported version of the Amperity API.
Response
Workflow stopped
Example response
{
"created_at": "2024-06-19T04:00:18.764Z",
"ended_at": "2024-06-19T04:03:10.119Z",
"error": {
"attribution": "customer",
"data": {
"error_code": "InvalidAccessKeyId",
"id": "s3",
"request_id": "Z47DXHNGJ7ZPMRVS",
"retryable?": false
},
"message": "The credential does not provide access to the given resource. Please update\n the credential's access or try another credential.",
"type": "amperity.plugin.error/invalid-credentials"
},
"id": "wf-20240619-14418-6UhqSe",
"name": "Customer Attribute Daily",
"state": "failed",
"tenant": "acme2-max",
"type": "campaign.send"
}Changes
No recorded changes to this operation across all 1 revision of this API.