Replace queue slots
const url = 'https://postflow.biz.id/api/v1/queue';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"slots":[{"weekday":1,"time":"example"}]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://postflow.biz.id/api/v1/queue \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "slots": [ { "weekday": 1, "time": "example" } ] }'Replaces every slot. Times are in the workspace time zone.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”object
object
0 = Sunday
HH:MM
Example generated
{ "slots": [ { "weekday": 1, "time": "example" } ]}Responses
Section titled “Responses”OK
object
Example generated
{ "ok": true}Validation failed. details lists what to fix.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}Missing, invalid, expired or deleted key or token.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}Not allowed: a read-only key, the owner’s approval, or an owner-only action.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}More than 120 requests in a minute with this key.
object
object
A sentence you can show to a person.
Field errors ({ field: [messages] }), or preflight: per-account rule violations with an issue code.
Example
{ "error": { "code": "UNAUTHENTICATED" }}