Skip to main content
DELETE
/
v1
/
programs
/
{programId}
/
automations
/
{automationId}
Delete an automation
curl --request DELETE \
  --url https://api.scrip.dev/v1/programs/{programId}/automations/{automationId} \
  --header 'X-API-Key: <api-key>'
{
  "code": "unauthorized",
  "details": {
    "expected": "present",
    "field": "amount",
    "message": "This field is required",
    "reason": "required",
    "received": "<string>"
  },
  "message": "Missing or invalid credentials"
}
Archives an automation. This is a soft delete: the automation stops firing and is excluded from default list responses, but it is not permanently removed. You can still retrieve it by ID. Archived automations cannot be re-activated. If you need to temporarily disable an automation with the intent to resume it later, use the update endpoint to set status to paused instead.
For usage patterns and examples, see the Automations guide.

Authorizations

X-API-Key
string
header
required

API key passed in the X-API-Key header.

Path Parameters

programId
string<uuid>
required

Program ID

automationId
string<uuid>
required

Automation ID

Response

Automation archived