05 Save per-channel schedules
5.1 Description
POST/contents/schedule
Accounts must be connected to that workspace and active. The same account can't be specified twice in one request. Different accounts on the same platform can be specified together.
There are two ways to choose the accounts to publish to.
targets— list each account individually. You can set a different time, visibility, and options for each account.target_language— every account that covers that language becomes a target. In this case, send the scheduled time aspublish_atorlocal_publish_atat the top level, andvisibility·platform_optionsare also taken from the top level and applied to all targets.
If both are sent, targets wins. If neither is sent, the response is 400.
Send only one of publish_at and local_publish_at for the scheduled time. Sending both is rejected.
Each entry of targets consists of the following fields.
5.2 Parameters
| Name | Category | Description |
|---|---|---|
workspace | Required | Workspace code |
content_id | Required | ID of the content to schedule. Taken from GET /contents, field id |
targets | Optional | Per-channel schedule list. Up to 50. Each entry has the shape in the table above. Either this or target_language is required |
target_language | Optional | Targets every account assigned to this language (e.g. ko · en · pt-br, 2–5 lowercase characters). Ignored if targets is also given |
publish_at | Optional | Scheduled time when selecting by target_language. ISO-8601 with UTC offset |
local_publish_at | Optional | Scheduled time when selecting by target_language. Local time in the workspace time zone. Send only one of this and publish_at |
visibility | Optional | Visibility for all targets selected by target_language. Defaults to public if omitted |
platform_options | Optional | Per-platform publishing options for all targets selected by target_language |
5.3 Request
curl -X POST https://moacast.com/api/moacast/v1/contents/schedule \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Content-Type: application/json' \
-d '{"workspace":"a1b2c3d4","content_id":"value"}'5.4 Success response
{
"result": "SUCCESS",
"result_code": 0,
"message": "예약을 저장했습니다.",
"data": {
"content": {
"id": 12,
"title": "9월 넷째 주 요약",
"publications": [
{
"id": 34,
"channel": "youtube",
"external_id": "UC...",
"status": "SCHEDULED",
"publish_at": "2026-09-28T01:00:00+00:00",
"visibility": "public",
"platform_options": []
}
]
}
}
}5.5 Field
| Field | Type | Required | Description |
|---|---|---|---|
channel_key | string | ✓ | Channel key. youtube · instagram · facebook · threads · tiktok · x · linkedin |
external_id | string | The account to post to. Use the value from GET /channels, field external_id, as is. Required if the platform has more than one account; otherwise the response is 400 | |
publish_at | string | ISO-8601 with UTC offset (2026-09-28T01:00:00Z) | |
local_publish_at | string | Local time in the workspace time zone (2026-09-28T10:00) | |
visibility | string | public · unlisted · private. Defaults to public if omitted | |
platform_options | object | Per-platform publishing options. Must be an object, not an array |
| Field | Type | Description |
|---|---|---|
content | object | The content with schedules applied. Same shape as one entry of GET /contents, with the just-saved schedules in publications |
5.6 Failed
| Code | HTTP | When |
|---|---|---|
9912 | 400 | workspace or content_id is missing |
1004 | 400 | A target doesn't meet the rules (neither targets nor target_language given · 51 or more · same account twice · time format · an account that isn't connected or isn't active (needs reconnecting) · external_id not given when the same platform has more than one account · invalid target_language format or no account for that language · a time that doesn't exist or is duplicated due to daylight saving time, etc.) |
1001 | 401 | Header is missing or the token is invalid |
1002 | 403 | The workspace is suspended |
1003 | 403 | A write call made with a session, but the request didn't originate from this site |
2000 | 404 | The workspace doesn't exist, or the content can't be found |
4090 | 409 | Schedules that have already been published can't be edited |
5000 | 500 | Couldn't save the schedules |
5000 | 503 | The schedule store isn't ready |
