Domain Management
List Domains:
GET
api/domains
Retrieve a list of domains associated with a company.
Headers:
Authorization
String
Bearer token (Bearer {api_token}
)
Yes
Query Parameters:
company_id
Int
ID of the company to retrieve domains for (optional).
No
Response:
Create a New Domain
POST /api/domains
Add a new domain to a company.
Headers:
Authorization
String
Bearer token (Bearer {api_token}
)
Yes
Content-Type
String
application/json
Yes
Body Parameters:
name
String
The domain name to add.
Yes
display_name
String
A display name for the domain.
Yes
company_id
Int
ID of the company to add the domain to (optional).
No
Response:
Update an Existing Domain
PUT /api/domains/{id}
Modify details of an existing domain.
Headers:
Authorization
String
Bearer token (Bearer {api_token}
)
Yes
Content-Type
String
application/json
Yes
Path Parameters:
id
Int
The ID of the domain to update
Yes
Body Parameters:
name
String
The updated domain name.
Yes
display_name
String
The updated display name for the domain
Yes
Response:
Delete a Domain
DELETE /api/domains/{id}
Remove a domain from a company.
Headers:
Authorization
String
Bearer token (Bearer {api_token}
)
Yes
Path Parameters:
id
Int
The ID of the domain to delete
Yes
Response:
Last updated