Update an Email Rule

PATCH /email_rules/{email_rule_id}

Update an existing Email Rule request

Headers

  • Authorization string Required

    Authorize your API calls with an Arta API token

Path parameters

application/json

Body

  • Hide email_rule attribute Show email_rule attribute
    • recipients array[string] Required

      The list of recipients for this Email Rule.

Responses

PATCH /email_rules/{email_rule_id}
curl \
 -X PATCH https://api.arta.io/email_rules/{email_rule_id} \
 -H "Content-Type: application/json" \
 -H "Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y" \
 -d '{"email_rule":{"recipients":["destination","origin"]}}'
Request examples
# Headers
Authorization: ARTA_APIKey s0e1t2e3c4a5s6t7r8o9n10o11m12y

# Payload
{
  "email_rule": {
    "recipients": [
      "destination",
      "origin"
    ]
  }
}
Response examples (200)
{
  "id": 7,
  "created_at": "2020-10-14T15:29:06.263371",
  "recipients": [
    "destination"
  ],
  "updated_at": "2020-10-14T15:29:06.263371",
  "email_notification_id": "complete"
}
Response examples (404)
# Headers
content-type: application/json
x-arta-request-id: FkBjuxbwLLTx4RoAARkx

# Payload
{
  "errors": {
    "detail": "string"
  }
}