curl --request PUT \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/collections/{collectionId}/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"levelIds": [
"set_4d5e6f7a8b9c0d1e2f3a",
"set_3c4d5e6f7a8b9c0d1e2f"
]
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/collections/{collectionId}/order"
payload = { "levelIds": ["set_4d5e6f7a8b9c0d1e2f3a", "set_3c4d5e6f7a8b9c0d1e2f"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({levelIds: ['set_4d5e6f7a8b9c0d1e2f3a', 'set_3c4d5e6f7a8b9c0d1e2f']})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/collections/{collectionId}/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Reorder a ladder's levels
Sets the order of a ladder’s levels. In a sequential ladder this is the climb every fan follows: the AI always offers a fan the first level they have not bought. Levels you list come first, in your order; any you leave out keep their order after them, and an id that is not a level of this ladder is a 400. Returns the whole updated content board. Nothing is sent to fans: the AI uses active ladders in its own conversations. AI content writes are limited to 60 a minute per credential.
Scope: requires ai:write.
Rate limits: 60 changes per 60 seconds per credential — on top of the general limit of 120 requests per 60 seconds per credential.
Idempotency: send an Idempotency-Key header to make retries safe: a replay within 24 hours returns the original response with Idempotent-Replayed: true.
curl --request PUT \
--url https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/collections/{collectionId}/order \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"levelIds": [
"set_4d5e6f7a8b9c0d1e2f3a",
"set_3c4d5e6f7a8b9c0d1e2f"
]
}
'import requests
url = "https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/collections/{collectionId}/order"
payload = { "levelIds": ["set_4d5e6f7a8b9c0d1e2f3a", "set_3c4d5e6f7a8b9c0d1e2f"] }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({levelIds: ['set_4d5e6f7a8b9c0d1e2f3a', 'set_3c4d5e6f7a8b9c0d1e2f']})
};
fetch('https://api.onlyx.ai/v1/creators/{creatorId}/ai-content/collections/{collectionId}/order', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Headers
Optional. A unique value (8 to 64 letters, digits, - or _; a UUID is ideal) that makes a retry safe: the same key with the same request within 24 hours returns the stored response, with Idempotent-Replayed: true, instead of doing the work twice. The same key with a different request is 409 IDEMPOTENCY_KEY_REUSED; while the first request still runs it is 409 IDEMPOTENCY_IN_PROGRESS. A malformed key is 400 VALIDATION_ERROR.
8 - 64^[A-Za-z0-9_-]{8,64}$Path Parameters
Body
Response
The whole content board after the change.
A creator's whole AI content setup. Every AI content write returns the updated board.