Set a test project's clock to a time
curl --request POST \
--url https://api.getlurk.com/v1/clock/set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"to": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({to: '2023-11-07T05:31:56Z'})
};
fetch('https://api.getlurk.com/v1/clock/set', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/clock/set"
payload = { "to": "2023-11-07T05:31:56Z" }
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
Set a test project's clock to a time
Sets the time the project thinks it is, such as the Monday a schedule should run. It cannot be earlier than the project’s time now; use a reset to start over. Test projects only.
POST
/
v1
/
clock
/
set
Set a test project's clock to a time
curl --request POST \
--url https://api.getlurk.com/v1/clock/set \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <idempotency-key>' \
--data '
{
"to": "2023-11-07T05:31:56Z"
}
'const options = {
method: 'POST',
headers: {
'Idempotency-Key': '<idempotency-key>',
Authorization: 'Bearer <token>',
'Content-Type': 'application/json'
},
body: JSON.stringify({to: '2023-11-07T05:31:56Z'})
};
fetch('https://api.getlurk.com/v1/clock/set', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/clock/set"
payload = { "to": "2023-11-07T05:31:56Z" }
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
Set a test project's clock to a time