Create picture upload URL
A URL that accepts one PUT of a picture of one's own, for an hour. Each call makes a new picture ID with a place of its own in the store; complete the upload under that ID once the file is sent. The PUT carries a Content-Type header equal to the answer's limits.contentType, the type named in the request, which the upload is held to.
A URL that accepts one PUT of a picture of one's own, for an hour.
Each call makes a new picture ID with a place of its own in the store; complete the upload under that ID once the file is sent. The PUT carries a Content-Type header equal to the answer's limits.contentType, the type named in the request, which the upload is held to.
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}$application/json- body
fileName*string1 <= length <= 255contentType*string"image/png""image/jpeg""image/webp"The picture's ID and the URL; send the file's bytes as the body of a PUT whose Content-Type is limits.contentType
application/json- response
pictureId*string^[A-Za-z0-9_-]{1,64}$url*stringurimethod*"PUT""PUT"expiresAt*stringdate-timelimits*curl -X POST 'https://www.chameleonlabs.org/api/manuals/string/uploads/upload-url' \ -H 'Content-Type: application/json' \ -d '{ "fileName": "string", "contentType": "image/png"}'{ "pictureId": "string", "url": "http://example.com", "method": "PUT", "expiresAt": "2019-08-24T14:15:22Z", "limits": { "maximumSizeInBytes": 0, "contentType": "string" }}Complete picture upload POST
Finishes an uploaded picture: upright, without its metadata, as WebP. Call once the file is sent. The picture is finished, and is then placed on cards by its ID as a built picture is. A picture the platform doesn't take is refused with the reason. Called again for a picture already finished, it answers that picture.
Delete uploaded picture DELETE
Deletes an uploaded picture; a card that placed it is reported by the checks. Refused while a job runs on the manual, so no publish can take the picture while it is being deleted.