Skip to content

Company

List companies the authenticated user is an operator of

Section titled “List companies the authenticated user is an operator of”

GET /api/v1/companies

Authentication: BearerAuth.

StatusDescriptionBody
200OKarray of Company
401UnauthorizedErrorResponse
500Internal Server ErrorErrorResponse

GET /api/v1/companies/{id}

Authentication: BearerAuth.

NameInTypeRequiredDescription
idpathstringYesCompany ID
StatusDescriptionBody
200OKCompany
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse

PATCH /api/v1/companies/{id}

Authentication: BearerAuth.

NameInTypeRequiredDescription
idpathstringYesCompany ID

application/json, required: UpdateCompanyRequest

Fields to update

FieldTypeRequiredDescription
configarray of integerNo
namestringNoAt least 1 character. At most 100 characters.
StatusDescriptionBody
200OKCompany
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
422Unprocessable EntityErrorResponse
500Internal Server ErrorErrorResponse

DELETE /api/v1/companies/{id}

Authentication: BearerAuth.

NameInTypeRequiredDescription
idpathstringYesCompany ID
StatusDescriptionBody
200OKMessageResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
500Internal Server ErrorErrorResponse

POST /api/v1/companies/{id}/logo

Accepts a multipart form with a single “file” field (JPEG, PNG, or WebP). The image is re-encoded to a 512px JPEG (stripping metadata), stored in object storage, and the company’s logo_url is updated. A previous logo is deleted.

Authentication: BearerAuth.

NameInTypeRequiredDescription
idpathstringYesCompany ID

multipart/form-data, required: object

Image file to upload

FieldTypeRequiredDescription
filestringYesImage file to upload
StatusDescriptionBody
200OKCompany
400Bad RequestErrorResponse
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
413Request Entity Too LargeErrorResponse
415Unsupported Media TypeErrorResponse
500Internal Server ErrorErrorResponse

DELETE /api/v1/companies/{id}/logo

Clears the company’s logo_url and deletes the stored object.

Authentication: BearerAuth.

NameInTypeRequiredDescription
idpathstringYesCompany ID
StatusDescriptionBody
200OKCompany
401UnauthorizedErrorResponse
403ForbiddenErrorResponse
404Not FoundErrorResponse
500Internal Server ErrorErrorResponse

Part of Crewlet. Generated from the OpenAPI document of the API, version 0.1.0.