Update current operator company’s logo
Users > Company
PUT update logo
Endpoint
PUT /api/v1/users/company/attachment
Parameters
Name | Description | Enum |
---|---|---|
company[attachment_type] required | Company attachment type | ["logo"] |
company[signed_id] required | Signed ID of the attachment received after direct upload |
Request
Route
PUT /api/v1/users/company/attachment
Headers
Accept: application/json
Content-Type: application/json
Authorization: Bearer eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxNjg5Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQ4NTE2NTM2LCJleHAiOjE3NTExMDg1MzYsImp0aSI6IjI1YjQ4MGIxLTUzNDYtNDFiYy05NzQ2LTAwNmY4ZTE3NWUyNCJ9.EdSbpgsM2g73hLd3o7G_Zz5pTUV_nSawuz661N1uLwQ
Host: example.org
Cookie:
Body
{
"company": {
"attachment_type": "logo",
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MjksInB1ciI6ImJsb2JfaWQifX0=--9e6492b3d2d97a2d4418745e7f7a710eda387ff1"
}
}
Response
Simulated Response
Status
200
Headers
x-frame-options: SAMEORIGIN
x-xss-protection: 0
x-content-type-options: nosniff
x-permitted-cross-domain-policies: none
referrer-policy: strict-origin-when-cross-origin
content-type: application/json; charset=utf-8
vary: Accept, Origin
etag: W/"ea6a96ead43020e9066863f0e7aa7393"
cache-control: max-age=0, private, must-revalidate
x-request-id: 9d1214c4-a351-4d16-a3d4-c79956623ae9
x-runtime: 0.055072
content-length: 347
Body
{
"logo": {
"id": 25,
"signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MjksInB1ciI6ImJsb2JfaWQifX0=--9e6492b3d2d97a2d4418745e7f7a710eda387ff1",
"byte_size": 596,
"filename": "test_image.png",
"url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjksInB1ciI6ImJsb2JfaWQifX0=--9e6492b3d2d97a2d4418745e7f7a710eda387ff1/test_image.png"
}
}