Skip to Content
Chameleon Docs
API referenceSource PDF

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.

POST
/api/manuals/{id}/source/complete

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.

Authorization

headerx-api-key<token>

Scope: manuals:write

Path Parameters

id*string
Match^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$

Response Body

The manual with its source, and the pages whose rotation was flattened

application/json
  1. response
manual*
flattenedPages*array<integer>
Example Request
curl -X POST 'https://www.chameleonlabs.org/api/manuals/string/source/complete'
Example Response
{  "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  ]}