Skip to main content
PATCH
https://app.ocoya.com/api/_public/v1
/
post
/
{postId}
Update post
curl --request PATCH \
  --url https://app.ocoya.com/api/_public/v1/post/{postId} \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --data '
{
  "scheduledAt": "2024-01-01T00:00:00Z"
}
'

Authorizations

X-API-Key
string
header
required

Path Parameters

postId
string
required

Ocoya post ID.

Example:

"cmajvvb9q0003ja5vh0538j6r"

Body

application/json
scheduledAt
string

ISO 8601 datetime when the post should be scheduled. Omit to save as draft.

Example:

"2024-01-01T00:00:00Z"

Response

Success