Patch Rule

Patch Rule

This API updates customer rule. Only rule name update is allowed. It returns the updated rule definition.

Request
URI
PATCH
https://{api_host}/rules/{id}
COPY
Path Parameters
id
Required

The id(UUID) of a customer rule

Header Parameters
string
sessionid
Required

The authentication token obtained from login API response


Request Body

Rule update definition

PatchRuleRequest of type(s) application/json
Required
{
    "name": "string"
}
name
Optional

name

Responses
200

Rule updated

Returns PatchRuleResponse of type(s) application/json
{
    "productType": "string",
    "productId": 0,
    "name": "string",
    "targetId": "string",
    "targetType": "string",
    "id": "string"
}
productType
Optional

productType

productId
Optional

productId

string
name
Optional

name

string
targetId
Optional

targetId

targetType
Optional

targetType

id
Optional

id


400
Returns 400InvalidRequest of type(s) application/json
{
    "errCode": "GW_REQ_KEY",
    "errMessage": "Not found expected value for key 'sampleKey'"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


401

Unauthorized - Invalid login credentials

{
    "errCode": "string"
}
string
errCode
Optional

errCode