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

Authentication

AuthorizationBearer
JWT access token or Respan API key

Path parameters

unique_organization_idstringRequired

Request

This endpoint expects an object.
email_domainstringRequired>=1 character

Response

No response body