Skip to content

remove_company_member

Endpoint#

PropertyValue
Typemutation
MethodPOST
Path/api/external/v1/remove_company_member
HandlerOperatelyWeb.Api.Mutations.RemoveCompanyMember

Authentication#

  • Requires a valid API token.
  • Requires a write-enabled token.
  • Read-only tokens return 403.

Inputs#

FieldTypeRequiredNullableDefault
person_idstringYesNo-

Outputs#

FieldTypeRequiredNullable
personperson objectYesNo

cURL Example#

Copied
curl --request POST \
  --url "https://app.operately.com/api/external/v1/remove_company_member" \
  --header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
  --header "Content-Type: application/json" \
  --data '{"person_id":"value"}'

Response Example#

{
  "person": {
    "access_level": 123,
    "agent_def": "<agent_def>",
    "avatar_blob_id": "value",
    "avatar_url": "value",
    "company": "<company>",
    "description": "value",
    "email": "value",
    "full_name": "value",
    "has_open_invitation": true,
    "id": "value",
    "invite_link": "<invite_link>",
    "manager": "<person>",
    "notify_about_assignments": true,
    "notify_on_mention": true,
    "peers": [
      "<person>"
    ],
    "permissions": "<person_permissions>",
    "reports": [
      "<person>"
    ],
    "send_daily_summary": true,
    "show_dev_bar": true,
    "suspended": true,
    "timezone": "value",
    "title": "value",
    "type": "value"
  }
}