Skip to content

Update Social Post

PATCH
/social/posts/{post_id}

Edit a post that has not gone out yet. Only the fields you send change.

Authorizations

Parameters

Path Parameters

post_id
required

The post’s id.

string

The post’s id.

Header Parameters

X-Target-Org-Id
Any of:
string

Request Body required

Edit a post. Only the fields you send change.

account_ref: null sent EXPLICITLY detaches the draft from its account; omitting the field leaves the account alone.

object
account_ref
Any of:
string
body
Any of:
string
<= 3000 characters
media
Any of:
Array<object>
<= 9 items

One image, video or PDF document attached to a post.

A post carries up to 8 images, OR exactly one video, OR exactly one document, never a mix.

object
alt

Alt text. alt_text is accepted as a synonym.

string
""
duration_seconds

Display only: video length in seconds.

id
Any of:
string
kind

image, video or document (a PDF).

string
default: image
page_count

Display only: number of pages of a document.

poster_url
Any of:
string
<= 2048 characters
size_bytes

Display only: file size in bytes. Never sent to LinkedIn.

title
Any of:
string
url
required

Publicly fetchable URL of the asset.

string
post_type
Any of:
string
Allowed values: text image video document

Responses

200

Successful Response

object
data
required

One post.

object
account_ref
Any of:
string
autopilot_config_id
Any of:
string
autopilot_version
Any of:
integer
body
required
string
campaign_id
Any of:
string
created_at
Any of:
string
created_by
required
string
external_post_id
Any of:
string
external_post_url
Any of:
string
failure_reason
Any of:
string
generation_metadata
Any of:
object
key
additional properties
any
generation_sources
Any of:
Array<string>
id
required
string
idea_id
Any of:
string
media
Any of:
Array<object>
object
key
additional properties
any
post_type
required
string
provider
Any of:
string
published_at
Any of:
string
scheduled_at
Any of:
string
status
required
string
updated_at
Any of:
string
pagination
Any of:
object
has_next
required

Whether there are more pages

boolean
limit
required

Items per page

integer
next_cursor
Any of:
string
notes
Any of:
Array<string>
page
required

Current page number (1-indexed)

integer
total
required

Total number of items

integer
total_available
Any of:
integer
total_is_lower_bound
Any of:
boolean

422

Validation Error

object
detail
Array<object>
object
loc
required
Array
msg
required
string
type
required
string