Skip to main content
POST
/
api
/
v1
/
companies
/
me
Create My Company
curl --request POST \
  --url http://localhost:8000/api/v1/companies/me \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
{
  "name": "<string>",
  "id": 123,
  "date_added": "2023-11-07T05:31:56Z",
  "date_updated": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

The schema for creating a company.

name
string
required
Required string length: 1 - 255

Response

Successful Response

The schema for a company.

name
string
required
Required string length: 1 - 255
id
integer
required
date_added
string<date-time>
required
date_updated
string<date-time>
required