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.eyJzdWIiOiIxNjM0Iiwic2NwIjoidXNlciIsImF1ZCI6bnVsbCwiaWF0IjoxNzM3NTUxNTg5LCJleHAiOjE3NDAxNDM1ODksImp0aSI6IjA5MTUwNjhkLTE3NjEtNDcxNy04MmI3LTExZjVlOWU4NTc3MiJ9.p5Jc9ZhRvxJDYI7C5_uxyx7I5Q88xQh76GTvbsOr9gk
Host: example.org
Cookie: 

Body

{
  "company": {
    "attachment_type": "logo",
    "signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MjYsInB1ciI6ImJsb2JfaWQifX0=--b53e18eb318301cf07ba6ef3bfc889a270590fdf"
  }
}

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/"e1d028b9f0b4e5f798f9d9c59ba5ea9e"
cache-control: max-age=0, private, must-revalidate
x-request-id: 71f57965-b6e1-4a73-be9d-3fa9febf203a
x-runtime: 0.059569
content-length: 347

Body

{
  "logo": {
    "id": 24,
    "signed_id": "eyJfcmFpbHMiOnsiZGF0YSI6MjYsInB1ciI6ImJsb2JfaWQifX0=--b53e18eb318301cf07ba6ef3bfc889a270590fdf",
    "byte_size": 596,
    "filename": "test_image.png",
    "url": "http://localhost:3000/rails/active_storage/blobs/redirect/eyJfcmFpbHMiOnsiZGF0YSI6MjYsInB1ciI6ImJsb2JfaWQifX0=--b53e18eb318301cf07ba6ef3bfc889a270590fdf/test_image.png"
  }
}