Skip to main content
PUT
/
api
/
rest
/
rules
/
{id}
Update One Rule
curl --request PUT \
  --url https://api.upwell.com/api/rest/rules/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "<string>",
  "input": {
    "actionType": "CREATE_EXCEPTION",
    "actionValue": "<unknown>",
    "createdAt": "<unknown>",
    "criteriaField": "<string>",
    "criteriaObject": "EMAIL_MESSAGE",
    "criteriaOperator": "ARRAY_DOES_NOT_HAVE_OBJECT_WITH_PROPERTY",
    "criteriaValue": "<string>",
    "customerId": "<string>",
    "enabled": true,
    "exceptionConfig": "<unknown>",
    "exceptionType": "CARRIER_INVOICE_BOL_PO_NUMBER_MISMATCH",
    "id": "<string>",
    "priority": 123,
    "tenantId": "<string>",
    "type": "CARRIER_INVOICE_EXCEPTION",
    "updatedAt": "<unknown>"
  }
}
'
{
  "updateRule": {
    "actionType": "CREATE_EXCEPTION",
    "actionValue": "<unknown>",
    "createdAt": "<unknown>",
    "criteriaField": "<string>",
    "criteriaObject": "EMAIL_MESSAGE",
    "criteriaOperator": "ARRAY_DOES_NOT_HAVE_OBJECT_WITH_PROPERTY",
    "criteriaValue": "<string>",
    "customerId": "<string>",
    "id": "<string>",
    "priority": 123,
    "type": "CARRIER_INVOICE_EXCEPTION",
    "updatedAt": "<unknown>"
  }
}

Headers

authorization
string

Your API key will be used for authentication of the request. Authorization: YOUR_API_KEY

Path Parameters

id
string
required

"id" is required (enter it either in parameters or request body)

Body

application/json

Query parameters can also be provided in the request body as a JSON object

id
string
input
RulesSetInput Ā· object

input type for updating data in table "rules"

Response

200 - application/json

Responses for PUT /api/rest/rules/{id}

updateRule
Rules Ā· object

Rules used for matching, document requirements, etc