Complete PDF upload
Inspects the uploaded PDF and records it as the manual's source. Call once the upload has finished. The PDF is checked and kept with its rotated pages flattened, and the manual records its page count and page sizes, and the labels its pages. A PDF the platform doesn't take is deleted and refused with the reason, and the next one needs a new upload.
Inspects the uploaded PDF and records it as the manual's source.
Call once the upload has finished. The PDF is checked and kept with its rotated pages flattened, and the manual records its page count and page sizes, and the labels its pages. A PDF the platform doesn't take is deleted and refused with the reason, and the next one needs a new upload.
x-api-key<token>Scope: manuals:write
id*string^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$The manual with its source, and the pages whose rotation was flattened
application/json- response
manual*flattenedPages*array<integer>curl -X POST 'https://www.chameleonlabs.org/api/manuals/string/source/complete'{ "manual": { "id": "string", "ownerId": "string", "title": "string", "categoryId": "string", "tags": [ "string" ], "source": { "sha256": "string", "pageCount": 0, "pageSizes": [ { "width": 0, "height": 0 } ] }, "documents": { "labels": 0, "image-settings": 0, "cards": 0, "asset-index": 0 }, "hasAssets": true, "hasCards": true, "cardCount": 0, "published": "none", "packKey": "string", "publishedAt": "2019-08-24T14:15:22Z", "publishedCardCount": 0, "job": { "id": "string", "kind": "breakdown", "status": "running", "startedAt": "2019-08-24T14:15:22Z", "stoppedAt": "2019-08-24T14:15:22Z", "error": "string" }, "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }, "flattenedPages": [ 0 ]}Update manual PATCH
Changes a manual's title, category or tags. A published manual's pack carries its title, so a new title writes the pack again under a new name and points the manual at it, which an agent may do only with the publish permission. A new title is refused while a job runs.
Create PDF upload URL POST
A URL that accepts one PUT of the manual's PDF, for an hour. Each call makes a new upload with a place of its own in the store, and deletes the upload the manual waited on until then with any PDF sent to it: the PDF to complete is the one sent to the upload asked for last. The PUT carries a Content-Type header equal to the answer's limits.contentType, application/pdf, which the upload is held to.