curl --request PATCH \
--url https://api.superx.so/v1/queue-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slots": [
{
"time": "09:00",
"days": [
1,
2,
3,
4,
5
]
},
{
"time": "17:30",
"days": [
1,
3,
5
]
}
],
"timezone": "Europe/London"
}
'import requests
url = "https://api.superx.so/v1/queue-settings"
payload = {
"slots": [
{
"time": "09:00",
"days": [1, 2, 3, 4, 5]
},
{
"time": "17:30",
"days": [1, 3, 5]
}
],
"timezone": "Europe/London"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
slots: [{time: '09:00', days: [1, 2, 3, 4, 5]}, {time: '17:30', days: [1, 3, 5]}],
timezone: 'Europe/London'
})
};
fetch('https://api.superx.so/v1/queue-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.superx.so/v1/queue-settings",
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([
'slots' => [
[
'time' => '09:00',
'days' => [
1,
2,
3,
4,
5
]
],
[
'time' => '17:30',
'days' => [
1,
3,
5
]
]
],
'timezone' => 'Europe/London'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/queue-settings"
payload := strings.NewReader("{\n \"slots\": [\n {\n \"time\": \"09:00\",\n \"days\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n },\n {\n \"time\": \"17:30\",\n \"days\": [\n 1,\n 3,\n 5\n ]\n }\n ],\n \"timezone\": \"Europe/London\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.superx.so/v1/queue-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"slots\": [\n {\n \"time\": \"09:00\",\n \"days\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n },\n {\n \"time\": \"17:30\",\n \"days\": [\n 1,\n 3,\n 5\n ]\n }\n ],\n \"timezone\": \"Europe/London\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/queue-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"slots\": [\n {\n \"time\": \"09:00\",\n \"days\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n },\n {\n \"time\": \"17:30\",\n \"days\": [\n 1,\n 3,\n 5\n ]\n }\n ],\n \"timezone\": \"Europe/London\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"timezone": "Europe/London",
"timezone_is_default": false,
"slots": [
{
"time": "09:00",
"days": [
1,
2,
3,
4,
5
]
},
{
"time": "17:30",
"days": [
1,
3,
5
]
}
],
"slots_are_default": false,
"slot_count": 8
},
"reflow": {
"moved": 3,
"skipped": 0,
"bailed": false
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the write scope to use this endpoint."
}
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "internal_error",
"message": "Failed to fetch posts"
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_unavailable",
"message": "The scheduling service is temporarily unavailable. Retry with the same Idempotency-Key."
}
}Update queue settings
Changes the account’s posting schedule. Send slots, timezone, or both; only what you send changes. slots is a FULL REPLACE (max 50 entries, one per unique time, each with at least one weekday, 0 = Sunday); [] clears every predefined slot and leaves the queue all-custom.
Changing slots also RE-FLOWS the queue the way the app does: a queued post sitting exactly on an occurrence of an old slot moves to the matching new occurrence (Nth old to Nth new), so deliberate gaps are preserved and hand-picked custom times stay put. Scheduled X Articles and chained quote posts never move. Changing only timezone never moves posts.
reflow.bailed: true means the settings were saved but the queue was deliberately left untouched (a post had nowhere to land, or the move set was too large); the response then carries a note. Retrying the same request is safe and idempotent.
Changing the timezone and the slots in one call usually moves nothing, because the existing posts were placed under the old timezone; to re-flow them, change the timezone first, then send the slots in a second call.
This is a per-account write: pass account_id for any linked or shared account. Editor-permission shares CAN change queue settings.
curl --request PATCH \
--url https://api.superx.so/v1/queue-settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"slots": [
{
"time": "09:00",
"days": [
1,
2,
3,
4,
5
]
},
{
"time": "17:30",
"days": [
1,
3,
5
]
}
],
"timezone": "Europe/London"
}
'import requests
url = "https://api.superx.so/v1/queue-settings"
payload = {
"slots": [
{
"time": "09:00",
"days": [1, 2, 3, 4, 5]
},
{
"time": "17:30",
"days": [1, 3, 5]
}
],
"timezone": "Europe/London"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.patch(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PATCH',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
slots: [{time: '09:00', days: [1, 2, 3, 4, 5]}, {time: '17:30', days: [1, 3, 5]}],
timezone: 'Europe/London'
})
};
fetch('https://api.superx.so/v1/queue-settings', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.superx.so/v1/queue-settings",
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([
'slots' => [
[
'time' => '09:00',
'days' => [
1,
2,
3,
4,
5
]
],
[
'time' => '17:30',
'days' => [
1,
3,
5
]
]
],
'timezone' => 'Europe/London'
]),
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;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.superx.so/v1/queue-settings"
payload := strings.NewReader("{\n \"slots\": [\n {\n \"time\": \"09:00\",\n \"days\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n },\n {\n \"time\": \"17:30\",\n \"days\": [\n 1,\n 3,\n 5\n ]\n }\n ],\n \"timezone\": \"Europe/London\"\n}")
req, _ := http.NewRequest("PATCH", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.patch("https://api.superx.so/v1/queue-settings")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"slots\": [\n {\n \"time\": \"09:00\",\n \"days\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n },\n {\n \"time\": \"17:30\",\n \"days\": [\n 1,\n 3,\n 5\n ]\n }\n ],\n \"timezone\": \"Europe/London\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.superx.so/v1/queue-settings")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Patch.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"slots\": [\n {\n \"time\": \"09:00\",\n \"days\": [\n 1,\n 2,\n 3,\n 4,\n 5\n ]\n },\n {\n \"time\": \"17:30\",\n \"days\": [\n 1,\n 3,\n 5\n ]\n }\n ],\n \"timezone\": \"Europe/London\"\n}"
response = http.request(request)
puts response.read_body{
"data": {
"timezone": "Europe/London",
"timezone_is_default": false,
"slots": [
{
"time": "09:00",
"days": [
1,
2,
3,
4,
5
]
},
{
"time": "17:30",
"days": [
1,
3,
5
]
}
],
"slots_are_default": false,
"slot_count": 8
},
"reflow": {
"moved": 3,
"skipped": 0,
"bailed": false
}
}{
"error": {
"code": "invalid_parameter",
"message": "since must be a UTC ISO-8601 timestamp"
}
}{
"error": {
"code": "invalid_api_key",
"message": "Unknown or revoked API key"
}
}{
"error": {
"code": "insufficient_scope",
"message": "This API key is read-only. Create a key with the write scope to use this endpoint."
}
}{
"error": {
"code": "account_not_found",
"message": "No account with that id belongs to this key"
}
}{
"error": {
"code": "rate_limited",
"message": "Rate limit exceeded for the Pro plan (30 requests/min). Upgrade for higher limits.",
"retry_after": 42
}
}{
"error": {
"code": "internal_error",
"message": "Failed to fetch posts"
}
}{
"error": {
"code": "upstream_error",
"message": "Failed to fetch scheduled posts. Try again shortly."
}
}{
"error": {
"code": "upstream_unavailable",
"message": "The scheduling service is temporarily unavailable. Retry with the same Idempotency-Key."
}
}Authorizations
A SuperX API key ("sxk_..."), created in the SuperX app under Account > API / MCP / CLI. Keys are server-side secrets.
Query Parameters
Account to act on, from GET /v1/accounts. Defaults to your main account. An id outside your accounts returns 404 account_not_found.