Create a scheduled or a draft post
Changed onReturns an id of the post
Request
- Base URLhttps://www.app.ocoya.com/api/_public/v1
- AuthAPI key in header X-API-Key
Query parameters
Ocoya brand ID. Get one from GET /brands.
Request body
Example request
{
"caption": "Happy new year everyone!",
"mediaUrls": [
"https://yourmediaurl.com"
],
"channelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"scheduledAt": "2024-01-01T00:00:00Z",
"options": {
"facebook": {
"type": "reel"
},
"instagram": {
"type": "reel"
},
"tiktok": {
"privacyLevel": "PUBLIC_TO_EVERYONE",
"allowComment": true
}
}
}Response
Created
Example response
{
"postGroupId": "cmajvvb9q0003ja5vh0538j6r"
}Changes
- warning
removed the request property
- info
added the new optional request property
- warning
- breaking
removed
subschema #1subschema #2subschema #3from the request bodyoneOflist - breaking
the request's body type changed from no type to
object - info
api operation id
createPostwas added - info
api tag
Postsadded - info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the new optional request property
- info
added the media type
application/jsonfor the response with the status - info
added the media type
application/jsonfor the response with the status - info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- info
added the non-success response with the status
- breaking