Alert Actions

putAlertActionsId

PUT
/alertActions/{id}

Update an alertAction representing a particular instance of an Alert that is sent out through one particular channel, for example, SMS, mobile application notification, or email, each being associated with an Alert resource.

Authorization

APIKEY<token>

In: header

Path Parameters

id*string

The ID of this resource and The Alert Action ID.

Header Parameters

token?string

A single-use, limited authentication layer in addition to an API Key or Session Key to authorize sensitive operations. Auth Tokens add security by requiring one-time approval for specific actions.

request-token?string

A custom, one-time identifier for any API request (GET, PUT, POST, or DELETE). Blocks future requests with the same token for 48 hours, ensuring only the first request is processed. Valid values can contain 1-100 alphanumeric and special characters. See Request Tokens for more information.

Request Body

application/json

Update Alert Action Request

Update Alert Action Request

alert?string

The identifier of the Alert resource that defines this alertAction.

headerName?string

The request header name for authentication to the endpoint.

headerValue?string

The request header value for authentication to the endpoint.

options?string

When the 'type' field of this resource is set to 'web', this field determines the format that the Alert data should be sent in.

value?string

A value used to deliver the alert. Thie field should be set to an email address if the type is email, an endpoint if the type is web, etc.

retries?integer

The number of times an alert should be resent in case of a failure. This fields can only be set for web type alertActions.

maxAttemptsTempDisabled?alertActionsMaxAttemptsTempDisabled

Whether it was temporarily disabled for reaching the maximum number of failed attempts.

  • 0 - Not Temporarily Disabled
  • 1 - Temporarily Disabled

Value in

  • 0
  • 1
inactive?inactive

Whether this resource is marked as inactive.

  • 0 - Active
  • 1 - Inactive

Value in

  • 0
  • 1
frozen?frozen

Whether this resource is marked as frozen.

  • 0 - Not Frozen
  • 1 - Frozen

Value in

  • 0
  • 1

Response Body

application/json

application/json

curl -X PUT "https://example.com/alertActions/t1_ala_67d0924f1919ec362341d00" \  -H "Content-Type: application/json" \  -d '{    "alert": "t1_alt_65fddb118236188e055d54c",    "options": "JSON",    "value": "https://test.payrix.com/apix/test/t1",    "maxAttemptsTempDisabled": 0,    "headerName": "Authorization",    "headerValue": "SecrtToken1234!",    "retries": 3,    "inactive": 0,    "frozen": 0  }'
{  "response": {    "data": [      {        "id": "t1_ala_67d0924f1919ec362341d00",        "created": "2025-03-11 15:43:11.1194",        "modified": "2025-03-11 15:43:11.1194",        "creator": "t1_log_65b2c883d793216616f16ab",        "modifier": "t1_log_65b2c883d793216616f16ab",        "type": "web",        "options": "JSON",        "value": "https://test.payrix.com/apix/test/t1",        "alert": "t1_alt_65fddb118236188e055d54c",        "retries": 3,        "headerName": "Authorization",        "headerValue": "SecretToken123!",        "maxAttemptsTempDisabled": 0,        "inactive": 0,        "frozen": 0      }    ],    "details": {      "requestId": 1,      "totals": [],      "page": {        "current": 1,        "last": 1,        "hasMore": false      }    },    "errors": []  }}