Posts
Update post
Changed onReturns an id of the updated post
patch/post/{postId}
Request
- Base URLhttps://www.app.ocoya.com/api/_public/v1
- AuthAPI key in header X-API-Key
Path parameters
postIdstring required
Example:cmajvvb9q0003ja5vh0538j6r
Ocoya post ID.
Request body
Example request
{
"caption": "Launching our summer campaign today.",
"scheduledAt": "2024-01-01T00:00:00Z",
"publishNow": true,
"mediaUrls": [
"https://example.com/image.jpg"
],
"addMediaUrls": [
"https://example.com/image.jpg"
],
"channelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"addChannelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"options": {
"facebook": {
"type": "reel"
},
"instagram": {
"type": "reel"
},
"tiktok": {
"privacyLevel": "PUBLIC_TO_EVERYONE",
"allowComment": true
}
}
}Response
Success
Example response
{
"postGroupId": "cmajvvb9q0003ja5vh0538j6r"
}Changes
- warning
removed the request property
- warning
removed the request property
- info
added the new optional request property
- info
added the new optional request property
- warning
- breaking
the request property
became not nullable - info
api operation id
updatePostwas added - info
api tag
Postsadded - 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
- info
added the non-success response with the status
- breaking