pbs-library
POST /v1/pbs-library/items
Save a section, page or style.
Authentication
Send an API key as a bearer token. This endpoint does not state a specific permission in the specification, so give your key the least it needs and check the response rather than assuming.
This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.
Try it
Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.
curl -X POST https://api.zinndigital.com/v1/pbs-library/items \
-H "Authorization: Bearer zdk_live_…" \
-H "Content-Type: application/json" \
-d '{ }'Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console
Details
The content (block markup and styles, at most 2 MB) goes to object storage; images are uploaded first with createPbsLibraryImage and referenced by SHA-256. Refused with 409 quota_exceeded / item_limit_reached when the plan's ceiling would be passed (nothing is stored), 413 item_too_large, 403 licence_inactive (lapsed licence) or read_only (a read-only team member). Budget 600 writes/hour per session.
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
kind | string<section, page, style> | No | — |
title | string | No | — |
tags | string[] | No | — |
content | object | No | The design (block markup + styles) |
images | string[] | No | — |
team_id | string | No | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
id | string | Yes | — |
kind | string<section, page, style> | Yes | — |
title | string | Yes | — |
tags | string[] | Yes | — |
team_id | string | Yes | — |
content_bytes | integer | Yes | — |
created_at | string | Yes | — |
updated_at | string | Yes | — |
account | PbsLibraryAccount | Yes | — |
Errors this endpoint can return
401 · 403 · 404 · 409 · 413 · 422 · 429 · 503