Skip to main content
PATCH
/
v1
/
rule-sets
/
{rule-set-id}
Update Rule Set
curl --request PATCH \
  --url 'https://integration-api-cat2.{{environment}}.ext.{{realm}}.cia.enfuce.com/spend-control/v1/rule-sets/{rule-set-id}/' \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>",
  "operatorType": "ANY"
}
'
{
  "id": "<string>",
  "name": "<string>",
  "operatorType": "ANY",
  "ruleSetType": "STANDARD",
  "rules": [
    {
      "name": "<string>",
      "filterOperatorType": "ANY",
      "id": "<string>",
      "ruleType": "DECLINE",
      "filters": [
        {
          "id": "<string>",
          "type": "MCC",
          "reversed": true
        }
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Path Parameters

rule-set-id
string<biginteger>
required

Query Parameters

auditUser
string
required

The audit user to log the request

Body

application/json
name
string
operatorType
enum<string>

Defines whether all rules should pass or if it's enough for just one rule to pass.

Available options:
ANY,
ALL

Response

Successful operation

id
string<biginteger>
name
string
operatorType
enum<string>

Defines whether all rules should pass or if it's enough for just one rule to pass.

Available options:
ANY,
ALL
ruleSetType
enum<string>
default:STANDARD

STANDARD

STIP

Available options:
STANDARD,
STIP
rules
object[]