Create a signed URL to upload a file
post
Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
organizationIdstringRequiredPattern:
A unique entity identifier
^[a-zA-Z0-9_-]+$Body
kindstring · enumRequiredPossible values:
Responses
201
Successfully generated signed URL for file upload
application/json
objectstring · enumRequiredPossible values:
The kind of file to upload
urlstring · uri · max: 2048Required
Presigned URL for uploading the file
keystringRequired
The bucket object key for the file
400
Bad Request
application/json
post/orgs/{organizationId}/storage/upload
POST /v1/orgs/{organizationId}/storage/upload HTTP/1.1
Host: api.gitbook.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 75
{
"file": {
"name": "text",
"type": "text",
"size": 1
},
"kind": "customization_font"
}{
"object": "storage-signed-url",
"url": "https://example.com",
"key": "text"
}Last updated
Was this helpful?