OrganizationsCompanies
Sign an upload of a company logo
POST
The first of two steps: PUT the image at the URL answered, then confirm it with the key. PNG, JPEG or WebP, at most 2 MiB; checked again on the uploaded file.
Who may call it: An owner, security admin or admin of the organization. API keys: no.
sessioncookie
gamma.session_token<token>The session cookie a sign-in sets. Over HTTPS its name carries the __Secure- prefix. Browsers send it on their own; other clients keep it from the sign-in response.
slug*stringThe organization's slug, as in its URL.
companyId*stringapplication/json- body
contentType*stringimage/png, image/jpeg or image/webp.
Length
1 <= length <= 100sizeBytes*integerThe file's size in bytes; at most 2 MiB.
Range
0 < value <= 9007199254740991OK.
application/json- response
url*stringPUT the image here, straight to storage; valid for five minutes.
Format
urikey*stringWhere it will be stored; confirm the upload with it.
Example Request
curl -X POST 'http://localhost:3000/api/organizations/string/companies/string/logo/upload-url' \ -H 'Content-Type: application/json' \ -d '{ "contentType": "string", "sizeBytes": 1}'Example Response
{ "url": "http://example.com", "key": "string"}