Patch Rule
This API updates customer rule. Only rule name update is allowed. It returns the updated rule definition.
Request
URI
PATCH
/rules/{id}
COPY
Path Parameters
string
sessionid
Required
The authentication token obtained from login API response
Request Body
Responses
200
Rule updated
Returns PatchRuleResponse of type(s) application/json
{
"productType": "string",
"productId": "integer",
"name": "string",
"targetId": "string",
"targetType": "string",
"id": "string"
}
string
name
Optional
name
string
targetId
Optional
targetId
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