Appearance
Update Schedule
PUT/public/schedule/{scheduleId}Update the content, scheduled time, or configuration of an existing scheduled post.
Endpoint Details
- Authentication: Basic Auth (
Authorization: Basic Base64(AccessKey:SecretKey)) - Access Tier: Premium+
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
scheduleId | string | Yes | The unique identifier of the scheduled post. |
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
title | string | Yes | Title of the content (used for YouTube, etc.). |
description | string | Yes | Caption or description of the post. |
topic | string | Yes | Topic for Threads. |
type | string | Yes | Content type to post. Options: text, image, video, reel, album, link, story. |
medias | array | Yes | Array of media objects to attach (images/videos). |
meta | object | Yes | Link metadata for link-type posts. |
additionalInfo | object | Yes | Additional configuration for the post. |
additionalInfo.isAiGenerated | boolean | No | Whether content is AI-generated. |
additionalInfo.isDraft | boolean | No | Whether to save as draft. |
additionalInfo.isAutoAddMusic | boolean | No | Whether to automatically add music to post. |
replies | array | Yes | Nested replies for thread-style posts (Threads platform). |
scheduleAt | string | Yes | ISO 8601 datetime for the scheduled publish time. |
templateId | string | No | ID of the automation template to attach to this post. |
Example Request
bash
curl -X PUT "https://api.repliz.com/public/schedule/680affa5ce12f2f72916f67e" \
-H "Authorization: Basic $(echo -n 'YOUR_ACCESS_KEY:YOUR_SECRET_KEY' | base64)" \
-H "Content-Type: application/json" \
-d '{"title":"Baju Baru","description":"Baju baru alhamdulillah","topic":"Fashion","type":"text","medias":[],"meta":{"title":"","description":"","url":"","thumbnail":""},"additionalInfo":{"isAiGenerated":false,"isDraft":false,"isAutoAddMusic":false,"collaborators":[],"mentions":[],"music":{"id":"","artist":"","name":"","thumbnail":""},"products":[],"tags":[],"targetCountries":[]},"replies":[],"scheduleAt":"2026-05-30T09:01:26.510Z"}'javascript
import axios from "axios";
const scheduleId = "680affa5ce12f2f72916f67e";
const response = await axios.put(
`https://api.repliz.com/public/schedule/${scheduleId}`,
{
title: "Baju Baru",
description: "Baju baru alhamdulillah",
topic: "Fashion",
type: "text",
medias: [],
meta: {
title: "",
description: "",
url: "",
thumbnail: "",
},
additionalInfo: {
isAiGenerated: false,
isDraft: false,
isAutoAddMusic: false,
collaborators: [],
mentions: [],
music: {
id: "",
artist: "",
name: "",
thumbnail: "",
},
products: [],
tags: [],
targetCountries: [],
},
replies: [],
scheduleAt: "2026-05-30T09:01:26.510Z",
},
{
auth: {
username: "YOUR_ACCESS_KEY",
password: "YOUR_SECRET_KEY",
},
},
);
console.log(response.data);javascript
const credentials = btoa("YOUR_ACCESS_KEY:YOUR_SECRET_KEY");
const scheduleId = "680affa5ce12f2f72916f67e";
const response = await fetch(
`https://api.repliz.com/public/schedule/${scheduleId}`,
{
method: "PUT",
headers: {
Authorization: `Basic ${credentials}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
title: "Baju Baru",
description: "Baju baru alhamdulillah",
topic: "Fashion",
type: "text",
medias: [],
meta: {
title: "",
description: "",
url: "",
thumbnail: "",
},
additionalInfo: {
isAiGenerated: false,
isDraft: false,
isAutoAddMusic: false,
collaborators: [],
mentions: [],
music: {
id: "",
artist: "",
name: "",
thumbnail: "",
},
products: [],
tags: [],
targetCountries: [],
},
replies: [],
scheduleAt: "2026-05-30T09:01:26.510Z",
}),
},
);
const data = await response.json();
console.log(data);Response
json
// No content returned on successjson
{
"code": 404,
"message": "schedule not found"
}json
{
"code": 401,
"message": "unauthorized"
}