v3

latestOpenAPI 3.1.02026-07-311,4541,5202.3 MB
users

User Organization Set Team Domain Create

POST /api/users/organization/<unique_organization_id>/set-team-domain/

Set the team domain (email_domain) for an organization. Links the organization to a CompanyOrganization matching the domain, creating one if it doesn't exist.

Superadmin-only endpoint.

Request Body: - email_domain (string, required): The email domain to set (e.g. "acme.com")

Response (200 OK): { "message": "Team domain set successfully", "organization_id": 123, "email_domain": "acme.com", "company_organization_id": 456 }

Error Responses: - 400: Missing or empty email_domain - 404: Organization not found

post/user/organization/{unique_organization_id}/set-team-domain/

Path parameters

unique_organization_idstring required

Headers

Authorizationstring required

JWT access token or Respan API key

Request body

email_domainstring required

Response

No response body

UsersUserOrganizationSetTeamDomainCreateResponse200 required

Empty response body