Update a promotion
curl --request PATCH \
--url https://api.rigaly.com/api/v1/promotions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Double points weekend",
"description": "<string>",
"active": true,
"start_date": "2026-08-01",
"end_date": "2026-08-03",
"time_active": {
"monday": {
"active": true,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"active": true,
"start": "09:00",
"end": "17:00"
}
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Double points weekend',
description: '<string>',
active: true,
start_date: '2026-08-01',
end_date: '2026-08-03',
time_active: {
monday: {active: true, start: '09:00', end: '17:00'},
tuesday: {active: true, start: '09:00', end: '17:00'}
}
})
};
fetch('https://api.rigaly.com/api/v1/promotions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rigaly.com/api/v1/promotions/{id}"
payload = {
"title": "Double points weekend",
"description": "<string>",
"active": True,
"start_date": "2026-08-01",
"end_date": "2026-08-03",
"time_active": {
"monday": {
"active": True,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"active": True,
"start": "09:00",
"end": "17:00"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rigaly.com/api/v1/promotions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Double points weekend',
'description' => '<string>',
'active' => true,
'start_date' => '2026-08-01',
'end_date' => '2026-08-03',
'time_active' => [
'monday' => [
'active' => true,
'start' => '09:00',
'end' => '17:00'
],
'tuesday' => [
'active' => true,
'start' => '09:00',
'end' => '17:00'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "<string>",
"data": {}
}{
"success": false,
"error": {
"message": "Reward not found"
}
}Promotions
Update a promotion
PATCH
/
api
/
v1
/
promotions
/
{id}
Update a promotion
curl --request PATCH \
--url https://api.rigaly.com/api/v1/promotions/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"title": "Double points weekend",
"description": "<string>",
"active": true,
"start_date": "2026-08-01",
"end_date": "2026-08-03",
"time_active": {
"monday": {
"active": true,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"active": true,
"start": "09:00",
"end": "17:00"
}
}
}
'const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
title: 'Double points weekend',
description: '<string>',
active: true,
start_date: '2026-08-01',
end_date: '2026-08-03',
time_active: {
monday: {active: true, start: '09:00', end: '17:00'},
tuesday: {active: true, start: '09:00', end: '17:00'}
}
})
};
fetch('https://api.rigaly.com/api/v1/promotions/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.rigaly.com/api/v1/promotions/{id}"
payload = {
"title": "Double points weekend",
"description": "<string>",
"active": True,
"start_date": "2026-08-01",
"end_date": "2026-08-03",
"time_active": {
"monday": {
"active": True,
"start": "09:00",
"end": "17:00"
},
"tuesday": {
"active": True,
"start": "09:00",
"end": "17:00"
}
}
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.rigaly.com/api/v1/promotions/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PATCH",
CURLOPT_POSTFIELDS => json_encode([
'title' => 'Double points weekend',
'description' => '<string>',
'active' => true,
'start_date' => '2026-08-01',
'end_date' => '2026-08-03',
'time_active' => [
'monday' => [
'active' => true,
'start' => '09:00',
'end' => '17:00'
],
'tuesday' => [
'active' => true,
'start' => '09:00',
'end' => '17:00'
]
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"success": true,
"message": "<string>",
"data": {}
}{
"success": false,
"error": {
"message": "Reward not found"
}
}Authorizations
API key from the Rigaly dashboard: Authorization: Bearer rgly_sk_...
Path Parameters
Body
application/json
Example:
"Double points weekend"
Example:
"2026-08-01"
Example:
"2026-08-03"
Per-day time-of-day windows. Omit a day to leave it unrestricted; omit the whole field for always-active.
Show child attributes
Show child attributes
Example:
{ "monday": { "active": true, "start": "09:00", "end": "17:00" }, "tuesday": { "active": true, "start": "09:00", "end": "17:00" } }
⌘I