Advance a test project's clock
curl --request POST \
--url https://api.getlurk.com/v1/clock/advance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"days": 183,
"hours": 12000,
"minutes": 720000
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({days: 183, hours: 12000, minutes: 720000})
};
fetch('https://api.getlurk.com/v1/clock/advance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/clock/advance"
payload = {
"days": 183,
"hours": 12000,
"minutes": 720000
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"test": true,
"now": "2023-11-07T05:31:56Z",
"real_now": "2023-11-07T05:31:56Z",
"offset_seconds": 123
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Clocks
Advance a test project's clock
Moves the project’s time forward by days, hours or minutes, so a seven-day streak, a weekly schedule or an expiry can be tried without waiting. Test projects only. Scheduled rules and expiries that come due run within a minute. Time only moves forward, except for a reset.
POST
/
v1
/
clock
/
advance
Advance a test project's clock
curl --request POST \
--url https://api.getlurk.com/v1/clock/advance \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"days": 183,
"hours": 12000,
"minutes": 720000
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({days: 183, hours: 12000, minutes: 720000})
};
fetch('https://api.getlurk.com/v1/clock/advance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/clock/advance"
payload = {
"days": 183,
"hours": 12000,
"minutes": 720000
}
headers = {
"Idempotency-Key": "<idempotency-key>",
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"test": true,
"now": "2023-11-07T05:31:56Z",
"real_now": "2023-11-07T05:31:56Z",
"offset_seconds": 123
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}{
"error": {
"status": 123,
"code": "invalid_json",
"message": "<string>",
"request_id": "<string>",
"doc_url": "<string>",
"param": "<string>",
"next_step": "<string>"
}
}Authorizations
Headers
Body
application/json
Response
Advance a test project's clock