Cover Creation#
POST
/user-settings/covers/user/front
POST
/user-settings/covers/user/back
POST
/user-settings/covers/organization/front
POST
/user-settings/covers/organization/back
Add a front or back cover for user or organization which can be added at the beginning or end of a PDF generated from a template. Please note that only organization admin is allowed to create organization covers.
Request#
Example request#
curl -X POST 'https://api.pricehubble.com/api/v1/user-settings/covers/user/front' \
-H 'Authorization: Bearer 74126eab0a9048d993bda4b1b55ae074' \
-F 'cover=@/path/to/file.pdf'
Request fields#
Field | Description | Type | Remarks |
---|---|---|---|
cover | The PDF file to upload | file | Only PDF files are supported. Max size of 25MB and max pages number is 10 . Max number of covers for each endpoint is 10 . |
Response#
{
"uuid": "a3bfec7a-b985-4244-a7f1-4bd25a4a1d85",
"title": "My cover",
"url": "https://storage.googleapis.com/.../...e9742b1f0f55.pdf"
}
Response fields#
Field | Description | Type | Remarks |
---|---|---|---|
uuid | The id used within PriceHubble database to identify a cover | string | |
title | The filename of the cover | string | |
url | Url of the uploaded file | string | The url of the cover |