PUT
/
automations
/
{id}
curl --request PUT \
  --url https://mailcare.io/api/teams/{teamId}/automations/{id} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.mailcare.v1+json' \
  --data '{
  "title": "Save pdf invoices",
  "sender": "shop@example.com",
  "inbox": "claire@example.com",
  "subject": "New invoice",
  "has_attachments": true,
  "action_url": "https://example.com/webhooks/save-pdf-invoices",
  "action_secret_token": "SECRET12345$",
  "action_delete_email": true,
  "payload_format": "json"
}'

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string
required

The unique identifier of the automation to update.

Body

application/vnd.mailcare.v1+json

Response

200

Automation successfully updated.