When to use
Re-publish a presentation. TheshareId (and therefore every share URL) stays the same. The HTML in storage is overwritten. The version counter increments. View counts are preserved.
To create a new presentation, use POST /uploadSharedPresentation.
Endpoint
Auth
| Header | Value |
|---|---|
X-Process-Manager-Key | cko_… (or cka_…) — must belong to the presentation’s owner |
Content-Type | application/json |
presentations:write.
Request body
| Field | Type | Required | Description |
|---|---|---|---|
shareId | string | yes | The shareId of the existing presentation |
html | string | yes | The new HTML, ≤ 10 MB |
title | string | no | New display title; omit to keep the existing one |
Response (200)
| Field | Type | Description |
|---|---|---|
shareId | string | Same as the request |
version | number | The new version (auto-incremented from the previous) |
shareUrl | string | An active share URL (uses the first non-revoked token) |
What stays the same
shareIdand every share token (every existing URL still works)totalViewsand per-tokenaccessCount- Owner, organization,
apiKeyId
What changes
- The HTML in storage (atomically overwritten)
version(auto-bumps by 1)updatedAttitle(only if you pass a new one)
Examples
curl
Node.js
Errors
| Status | Code | Cause | Fix |
|---|---|---|---|
400 | invalid-argument | shareId or html missing or wrong type | Send both as strings |
401 | unauthenticated | Missing or invalid API key | Set a valid X-Process-Manager-Key |
403 | permission-denied | Key’s user is not the presentation’s owner | Use a key from the owner’s account |
404 | not-found | No presentation with that shareId | Verify the ID — list with listMyPresentationsPublic |
405 | method-not-allowed | Used GET/PUT/etc. | Use POST |
410 | archived | Presentation has been archived | Cannot be updated; create a new one with uploadSharedPresentation |
413 | payload-too-large | HTML > 10 MB | Slim down the deck |
500 | internal | Backend error | Retry with exponential backoff |
Atomicity
GCS object writes are atomic from the viewer’s perspective: a viewer either gets the old HTML or the new HTML, never a partial mix. There is no read-during-write window where the file is corrupt.Next
- Update in place guide — Step-by-step walkthrough.
- POST /uploadSharedPresentation — Create a new presentation.