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

Authorizations

X-API-KEY
string
headerrequired

Path Parameters

id
string
required

Body

application/json · object

The body is of type object.

Response

200 - application/json
id
string
required

Unique identifier for the rule edit

loyaltyRuleId
string
required

ID of the loyalty rule

websiteId
string
required

Unique identifier for the website

organizationId
string
required

Unique identifier for the organization

editedByUserId
string
required

User ID of the user who made the edit

editedAt
string
required

Timestamp of when the rule edit was made

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

previousData
object

Previous data of the rule before the edit

comment
string

Comment that was made on the edit