Pause a rule
curl --request POST \
--url https://api.getlurk.com/v1/rules/{id}/pause \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.getlurk.com/v1/rules/{id}/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/rules/{id}/pause"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"key": "<string>",
"name": "<string>",
"status": "draft",
"version": 123,
"live_version": 123,
"definition": {
"when": {
"event": "<string>"
},
"do": [
{
"unit": "<string>",
"add": 1,
"hold_over": 123
}
],
"if": [],
"limit": [],
"budget": [
{
"unit": "<string>",
"max": 123,
"per": "day"
}
],
"modify": [
{
"if": [
{
"audience": "<string>"
}
],
"times": 51,
"unit": "<string>"
}
],
"effects": [
{
"post": {
"community": "<string>",
"channel": "<string>",
"text": "<string>",
"channel_name": "<string>",
"every": "hour",
"max_per_day": 12
}
}
]
}
}{
"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>"
}
}Rules
Pause a rule
Stops a live rule at once: nothing is given or taken while it is paused. Keys and agents can pause. Starting it again needs an owner or admin, in person, with POST /v1/rules/{id}/resume. See Rules.
POST
/
v1
/
rules
/
{id}
/
pause
Pause a rule
curl --request POST \
--url https://api.getlurk.com/v1/rules/{id}/pause \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{}'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({})
};
fetch('https://api.getlurk.com/v1/rules/{id}/pause', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.getlurk.com/v1/rules/{id}/pause"
payload = {}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"id": "<string>",
"key": "<string>",
"name": "<string>",
"status": "draft",
"version": 123,
"live_version": 123,
"definition": {
"when": {
"event": "<string>"
},
"do": [
{
"unit": "<string>",
"add": 1,
"hold_over": 123
}
],
"if": [],
"limit": [],
"budget": [
{
"unit": "<string>",
"max": 123,
"per": "day"
}
],
"modify": [
{
"if": [
{
"audience": "<string>"
}
],
"times": 51,
"unit": "<string>"
}
],
"effects": [
{
"post": {
"community": "<string>",
"channel": "<string>",
"text": "<string>",
"channel_name": "<string>",
"every": "hour",
"max_per_day": 12
}
}
]
}
}{
"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
Body
application/json
The body is of type object.
Response
Pause a rule