-
Notifications
You must be signed in to change notification settings - Fork 8
Editable Internal Domain List
Michael Rybintsev edited this page Aug 8, 2019
·
4 revisions
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 |
- Basic concepts
-
Resources
- Actor
- Approvals
- BulkProcess
- Calendar
- Membership
- Company
- Document
- Document library settings
- Folder
- Paged Folder
- Pins
- Integrations
- Form
- Friends
- Invitation
- Link
- Document Lock
- Folder Lock
- Localisation
- MemberAutocomplete
- Notifications
- Offline item
- PeopleBulkProcess
- Permissions
- Presence
- PublishedDocuments
- Recents
- Recommendations
- Recycle Bin
- Search
- Share
- Tasks (Todos), File Requests, Approvals
- Tasks on Documents
- Actions
- UserApprovals
- User
- VersionHistory
- Workspace
- Workspaces
- SamlPartners
- Logout
- Impersonation
- Administration
- WebHooks