Your API key. Create one in Ocoya. Authorization: Bearer <key> works too.
Update post
Returns an id of the updated post
curl --request PATCH \
--url https://www.app.ocoya.com/api/_public/v1/post/{postId} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"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"
],
"clearMedia": false,
"channelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"addChannelIds": [
"clh49poxf008x8kov4ncbjty9"
],
"options": {
"facebook": {
"type": "reel"
},
"instagram": {
"type": "reel"
},
"tiktok": {
"privacyLevel": "PUBLIC_TO_EVERYONE",
"allowComment": true
}
}
}
'{
"postGroupId": "cmajvvb9q0003ja5vh0538j6r"
}Authorizations
Body
New caption to apply to existing post variations. To tag a LinkedIn company Page, write @[Exact Page Name](urn:li:organization:<id>): GET /linkedin/organizations answers it as mention. Or write @https://www.linkedin.com/company/<vanity>, which is looked up when the post is published. LinkedIn shows a tag; every other network shows "@Name". Limited availability: internal beta for now.
ISO 8601 datetime when the post should be scheduled, or null to make it unscheduled.
Full replacement set of publicly reachable image or video URLs. Maximum 10. Use an empty array to remove all media.
Publicly reachable image or video URLs to add without removing existing media. Maximum 10 total.
Full replacement set of channel IDs that should receive the post. Get IDs from GET /channels.
Settings for individual networks, keyed by network. Each one only applies when the post has a channel on that network. On update, only the fields you send change.
The values are returned by GET /post in each post's options (type, tiktok.profiles keyed by social profile ID, or title and pinterest.link; a YouTube title is the YouTube post's title).
Was this page helpful?