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

Authorizations

Authorization
string
header
required

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

Path Parameters

company_id
integer
required

Body

application/json

Schema for adding a member to a company. Either user_id or email must be provided.

user_id
integer
required

Response

Successful Response

The schema for a company membership.

id
integer
required
user_id
integer
required
company_id
integer
required
date_added
string<date-time>
required