-
Notifications
You must be signed in to change notification settings - Fork 8
Hosts
michael.rybintsev edited this page Aug 8, 2019
·
2 revisions
This endpoint is for managing email hosts of a registered SAML partner.
Currently this endpoint can only be consumed with admin permissions.
You can add a new email host to a SAML partner domain with a POST request to the emailhosts endpoint.
POST /samlpartners/123/emailhosts HTTP/1.1
Content-Type: application/vnd.huddle.data+json
Authorization: OAuth2 frootymcnooty/vonbootycherooty
{"hostName":"huddle.com"}
If POST is successful, this method will return a 201 Created with the Location header pointing to the created email host.
HTTP/1.1 201 Created
Location: /samlpartners/123/emailhosts/1234
Case | Response |
---|---|
Invalid authorization token | 401 Unauthorized |
Actor does not have admin permission | 403 Forbidden |
Requested SAML Partner Id does not exist | 404 Not Found |
Specified email host name already exists within the same or different SAML Partner | 409 Conflict |
This resource supports deleting individual email hosts. To delete an email host, send a DELETE request to the email host's self URI.
DELETE /samlpartners/123/emailhosts/1234 HTTP/1.1
Authorization: OAuth2 frootymcnooty/vonbootycherooty
If the delete is successful, this method will return an empty response with an 204 No Content status code
HTTP/1.1 204 No Content
Case | Response |
---|---|
Invalid authorization token | 401 Unauthorized |
Actor does not have admin permission | 403 Forbidden |
Requested SAML Partner Id does not exist | 404 Not Found |
Requested Email Host Id does not exist | 404 Not Found |
Specified email host id exists within different SAML Partner | 404 Not Found |
- 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