POST
/
api
/
api
/
loyalty
/
rule_edits
/
{id}
/
restore

Authorizations

X-API-KEY
string
header
required

Path Parameters

id
string
required

Body

application/json · object

The body is of type object.

Response

200 - application/json
action
enum<string>
required

Type of action that was made on the rule

Available options:
create,
update,
delete,
restore
data
object
required

Data that was changed on the rule

editedAt
string
required

Timestamp of when the rule edit was made

editedByUserId
string
required

User ID of the user who made the edit

id
string
required

Unique identifier for the rule edit

loyaltyRuleId
string
required

ID of the loyalty rule

organizationId
string
required

Unique identifier for the organization

websiteId
string
required

Unique identifier for the website

comment
string

Comment that was made on the edit

previousData
object

Previous data of the rule before the edit