Editable Internal Domain List - Huddle/huddle-apis GitHub Wiki
The Editable Internal Domain List of a Company is used to edit the [Internal Domain List] of a Company.
This represents the fields of the Internal Domain List that can be updated.
GET /people/companies/123/internalDomains/edit
Accept: application/vnd.huddle.data+xml
Authorization: OAuth2 frootymcnooty/vonbootycherooty
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+xml
<internalDomains>
<enabled>true</enabled>
<entries>
<entry>huddle.net</entry>
<entry>yahoo.com</entry>
</entries>
</internalDomains>
GET /people/companies/123/internalDomains/edit
Accept: application/vnd.huddle.data+json
Authorization: OAuth2 frootymcnooty/vonbootycherooty
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+json
{
"enabled": true,
"entries": [
"huddle.net",
"yahoo.com"
]
}
Response | Case |
---|---|
401 Unauthorized | Invalid authorization token |
403 Forbidden | Not a Company Manager or Admin |
A PUT will create or update the Internal Domain List replacing what was previously there. All the domains must be well formed.
PUT /people/companies/123/internalDomains/edit
Accept: application/vnd.huddle.data+xml
Content-Type: application/vnd.huddle.data+xml
Authorization: OAuth2 frootymcnooty/vonbootycherooty
<internalDomains>
<enabled>true</enabled>
<entries>
<entry>huddle.net</entry>
<entry>yahoo.com</entry>
</entries>
</internalDomains>
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+xml
<internalDomains>
<enabled>true</enabled>
<entries>
<entry>huddle.net</entry>
<entry>yahoo.com</entry>
</entries>
</internalDomains>
PUT /people/companies/123/internalDomains/edit
Accept: application/vnd.huddle.data+json
Content-Type: application/vnd.huddle.data+json
Authorization: OAuth2 frootymcnooty/vonbootycherooty
{
"enabled": true,
"entries": [
"huddle.net",
"yahoo.com"
]
}
HTTP/1.1 200 OK
Content-Type: application/vnd.huddle.data+json
{
"enabled": true,
"entries": [
"huddle.net",
"yahoo.com"
]
}
Response | Case |
---|---|
400 Bad Request | Supplied domains are not all valid |
401 Unauthorized | Invalid authorization token |
403 Forbidden | Not a Company Manager |