Update a post
Content (at most 3,000 characters of LinkedIn text; longer is 422 post_too_long) and/or details. Only drafts, failed and unlocked scheduled posts are editable (409 post_locked).
Authorizations
Send your API key in the x-api-key header on every request.
- Create a key in PostChamp under Settings → API keys. API access needs the Studio plan.
- Keys start with
pc_live_. The full key is shown once, when you create it: copy it then. Afterwards only its prefix is shown; lost keys are revoked and replaced. - Calls run as the person who created the key, with their current role, and spend the organization's credits.
- Limits per key: 120 requests per minute, 20 generation calls per minute. Keep the key on your server, never in a browser or app.
Path Parameters
Example: "7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f"
Example: "7d2c3f4e-9a0b-4c5d-8e6f-1a2b3c4d5e6f"
Body
application/jsonRequired string length: 1 - 100
Pattern: ^\d{4}-\d{2}-\d{2}$
Maximum string length: 200
Maximum string length: 200
The new text (contentDoc wins when both are sent). At most 3,000 characters of LinkedIn text (styled Unicode counts as written) can be saved or published: longer text is refused with 422 post_too_long (details: { max, charCount }). The maxLength shown on this field is only the size of request body accepted before that check.
Maximum string length: 20000
Available options: doc
Maximum array length: 3000
Available options: paragraph
Maximum array length: 3000
Response
The updated post.
Available options: draft, pending_approval, approved, scheduled, publishing, published, failed, cancelled
Plain text (no styling).
Available options: doc
Maximum array length: 3000
Available options: paragraph
Maximum array length: 3000
What LinkedIn will show (styled Unicode).
False when the post lock rule refuses edits; lock says why.