Users > Company

Update current operator company’s logo

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.eyJzdWIiOiIxNjY1Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzQyNDY0OTQ4LCJleHAiOjE3NDUwNTY5NDgsImp0aSI6ImYxNjNmZmE2LWI5NWQtNDE5Yy1hMGJjLTFiYjg4YWMzYjEwNSJ9.3DQDqQHDgN-TplMK1oWcjcTyjsrsvD1foW-dMsNvfQk
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: 8053817a-c794-4f4a-a354-30cc474624b1
x-runtime: 0.063812
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"
  }
}