Organisation APIs
Add Organisation Domain
OVERVIEW
Overview
Add a new domain to an organisation within Publisher
This API call is used to add a new domain to an organisation object in the system.
Since v4.6
HTTP Request
POST /api/2/organisations/<ID>/domains
URL Parameters
Parameter | Description |
---|---|
ID | The ID of the organisation to add the new domain to |
HTTP Request Object
Domain object, either in JSON or XML format.
HTTP Headers
HTTP Request Header | Description | Example |
---|---|---|
Authorization | The API Authorisation token | "Bearer XXXXXXXXXXXXX" |
Accept |
The format of the expected response.
If no parameter is set, JSON is the default response given. |
"application/xml" |
Content-Type |
The format of the provided content.
If no parameter is set, JSON is the expected content by default. |
"application/json" |
HTTP Response
Success
HTTP response 200
(Example below)
Error
Example HTTP Request & Response
POST
http://example.com/context/api/2/organisations/3/domains
JSON Request
{
"domain": {
"url": "highq.com"
}
}
JSON Response
{
"organisation": {
"id": 3,
"name": "HighQ",
"link": "http://example.com/context/api/2/organisations/3"
}
}
Last Updated: Nov 08,2024
Comments
0 Comments