Skip to main content
PATCH
/
social
/
posts
/
{postId}
Update a post
curl --request PATCH \
  --url https://rawugc.com/api/v1/social/posts/{postId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "content": "<string>",
  "scheduledFor": 123,
  "timezone": "<string>",
  "accountIds": [
    "<string>"
  ]
}
'
{
  "postId": "<string>",
  "platforms": [
    "<string>"
  ],
  "status": "draft",
  "scheduledFor": 123,
  "timezone": "<string>",
  "content": "<string>",
  "videoUrl": "<string>",
  "createdAt": 123,
  "publishedAt": 123
}

Authorizations

Authorization
string
header
required

Use your API key from the RawUGC dashboard. Include as: Authorization: Bearer YOUR_API_KEY

Path Parameters

postId
string
required

Post ID

Body

application/json

At least one field must be provided

content
string

Updated post caption/content

Maximum string length: 2200
scheduledFor
integer

Updated Unix timestamp (ms) for the scheduled publish time

timezone
string

IANA timezone string

accountIds
string[]

Replace the target accounts (array of accountId values)

Minimum array length: 1

Response

Post updated

postId
string

Post ID

platforms
string[]

Platform names

status
enum<string>
Available options:
draft,
scheduled,
published,
failed
scheduledFor
number

Unix timestamp of scheduled publish time

timezone
string
content
string

Post caption

videoUrl
string<uri>
createdAt
number
publishedAt
number