curl --request POST \
--url http://localhost:8000/api/v1/companies/{company_id}/members/by-email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com"
}
'{
"id": 123,
"user_id": 123,
"company_id": 123,
"date_added": "2023-11-07T05:31:56Z"
}Add a User to a Company given User’s email (admin only).
curl --request POST \
--url http://localhost:8000/api/v1/companies/{company_id}/members/by-email \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"email": "jsmith@example.com"
}
'{
"id": 123,
"user_id": 123,
"company_id": 123,
"date_added": "2023-11-07T05:31:56Z"
}The access token received from the authorization server in the OAuth 2.0 flow.
Schema for adding a member to a company. Either user_id or email must be provided.