POST
/
company-memberships
curl --request POST \
  --url https://api.schematichq.com/company-memberships \
  --header 'Content-Type: application/json' \
  --header 'X-Schematic-Api-Key: <api-key>' \
  --data '{
  "company_id": "<string>",
  "user_id": "<string>"
}'
{
  "data": {
    "company": {
      "created_at": "2023-11-07T05:31:56Z",
      "environment_id": "<string>",
      "id": "<string>",
      "last_seen_at": "2023-11-07T05:31:56Z",
      "logo_url": "<string>",
      "name": "<string>",
      "updated_at": "2023-11-07T05:31:56Z"
    },
    "company_id": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "id": "<string>",
    "updated_at": "2023-11-07T05:31:56Z",
    "user_id": "<string>"
  },
  "params": {}
}

Authorizations

X-Schematic-Api-Key
string
headerrequired

Body

application/json
company_id
string
required
user_id
string
required

Response

200 - application/json
data
object
required
params
object
required

Input parameters