Endpoint#
| Property | Value |
|---|
| Type | mutation |
| Method | POST |
| Path | /api/external/v1/remove_company_trusted_email_domain |
| Handler | OperatelyWeb.Api.Mutations.RemoveCompanyTrustedEmailDomain |
Authentication#
- Requires a valid API token.
- Requires a write-enabled token.
- Read-only tokens return
403.
| Field | Type | Required | Nullable | Default |
|---|
company_id | string | No | Yes | - |
domain | string | No | Yes | - |
Outputs#
| Field | Type | Required | Nullable |
|---|
company | company object | No | Yes |
cURL Example#
Copiedcurl --request POST \
--url "https://app.operately.com/api/external/v1/remove_company_trusted_email_domain" \
--header "Authorization: Bearer ${OPERATELY_API_TOKEN}" \
--header "Content-Type: application/json" \
--data '{"company_id":"value", "domain":"value"}'
Response Example#
{
"company": {
"admins": [
"<person>"
],
"company_space_id": "value",
"enabled_experimental_features": [
"value"
],
"general_space": "<space>",
"id": "value",
"member_count": 123,
"mission": "value",
"name": "value",
"owners": [
"<person>"
],
"people": [
"<person>"
],
"permissions": "<company_permissions>",
"setup_completed": true,
"trusted_email_domains": [
"value"
]
}
}