Recurring
GET
http://localhost:4000/api/v1 /posts/series List recurring series
A series makes its next post when the one before is due.
Code samples
cURL
curl -X GET "http://localhost:4000/api/v1/posts/series" \
-H "Authorization: Bearer $API_KEY"TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
[
{
"id": "string",
"organizationId": "string",
"authorId": "string",
"rule": {},
"template": {},
"timezone": "string",
"startAt": "2024-01-01T00:00:00Z",
"lastOccurrenceAt": "2024-01-01T00:00:00Z",
"endedAt": "2024-01-01T00:00:00Z",
"createdAt": "2024-01-01T00:00:00Z"
}
]Schema
idstring
required
organizationIdstring
required
authorIdstring
required
rulerequired
templaterequired
timezonestring
required
startAtstring
required
lastOccurrenceAtstring
required
endedAtstring
required
createdAtstring
required
POST
http://localhost:4000/api/v1 /posts/series Start a recurring series
rule says how often, startAt is the first occurrence. Needs posts:publish as well: what this sets up can publish without a person looking.
Request body
application/json
partsobject[]
required
Show child parameters
textstring
required
mediaIdsstring[]
delaySecondsinteger
targetsobject[]
required
Show child parameters
channelIdstring
required
partsobject[]
Show child parameters
textstring
required
mediaIdsstring[]
delaySecondsinteger
settingsobject
ruleobject
required
Show child parameters
freqstring
required
weekdaysinteger[]
monthDayinteger
intervalinteger
untilstring
countinteger
tagIdsstring[]
startAtstring
required
{
"parts": [
{
"text": "string",
"mediaIds": [],
"delaySeconds": 0
}
],
"targets": [
{
"channelId": "string",
"parts": [
{
"text": "string",
"mediaIds": [],
"delaySeconds": 0
}
],
"settings": {}
}
],
"rule": {
"freq": "daily",
"weekdays": [
0
],
"monthDay": 0,
"interval": 0,
"until": "string",
"count": 0
},
"tagIds": [],
"startAt": "2024-01-01T00:00:00Z"
}Code samples
cURL
curl -X POST "http://localhost:4000/api/v1/posts/series" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"parts":[{"text":"string","mediaIds":[],"delaySeconds":0}],"targets":[{"channelId":"string","parts":[{"text":"string","mediaIds":[],"delaySeconds":0}],"settings":{}}],"rule":{"freq":"daily","weekdays":[0],"monthDay":0,"interval":0,"until":"string","count":0},"tagIds":[],"startAt":"2024-01-01T00:00:00Z"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}PUT
http://localhost:4000/api/v1 /posts/series/{id} Change a series' rule and content
scope: "all" changes the series in place; "following" ends it and starts a new one from the pending occurrence. One occurrence alone is POST /posts on that post. Needs posts:publish as well: what this sets up can publish without a person looking.
Parameters
idstring
path
required
Request body
application/json
partsobject[]
required
Show child parameters
textstring
required
mediaIdsstring[]
delaySecondsinteger
targetsobject[]
required
Show child parameters
channelIdstring
required
partsobject[]
Show child parameters
textstring
required
mediaIdsstring[]
delaySecondsinteger
settingsobject
ruleobject
required
Show child parameters
freqstring
required
weekdaysinteger[]
monthDayinteger
intervalinteger
untilstring
countinteger
tagIdsstring[]
startAtstring
scopestring
required
{
"parts": [
{
"text": "string",
"mediaIds": [],
"delaySeconds": 0
}
],
"targets": [
{
"channelId": "string",
"parts": [
{
"text": "string",
"mediaIds": [],
"delaySeconds": 0
}
],
"settings": {}
}
],
"rule": {
"freq": "daily",
"weekdays": [
0
],
"monthDay": 0,
"interval": 0,
"until": "string",
"count": 0
},
"tagIds": [],
"startAt": "2024-01-01T00:00:00Z",
"scope": "following"
}Code samples
cURL
curl -X PUT "http://localhost:4000/api/v1/posts/series/{id}" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"parts":[{"text":"string","mediaIds":[],"delaySeconds":0}],"targets":[{"channelId":"string","parts":[{"text":"string","mediaIds":[],"delaySeconds":0}],"settings":{}}],"rule":{"freq":"daily","weekdays":[0],"monthDay":0,"interval":0,"until":"string","count":0},"tagIds":[],"startAt":"2024-01-01T00:00:00Z","scope":"following"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}DELETE
http://localhost:4000/api/v1 /posts/series/{id} Skip the next occurrence, end a series, or delete it
scope: this skips the pending occurrence, following ends the series, all also deletes it. Published occurrences stay as posts.
Parameters
idstring
path
required
Request body
application/json
scopestring
required
{
"scope": "this"
}Code samples
cURL
curl -X DELETE "http://localhost:4000/api/v1/posts/series/{id}" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d '{"scope":"this"}'TypeScript
Python
Go
PHP
Ruby
Java
Responses
200 OK
Example
{}Option 1
{}Option 2
{}Updated