Invite
Invite Service
Service for manipulating invitations to places, sent by a Jive user, and received by a Jive user or an email address.
Create Invites
POST /invites/places/{placeID}
Creates and sends invites to one or many persons for the specified place. The invitees can be defined by passing their email address, username or person URI. An example of the required JSON input is:
{ "body" : "Please come join my awesome group.", "invitees" : [ "fred@example.com", "https://example.jiveon.com/api/core/v3/people/1234" ] }
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
placeID | String | true | ID of the place where a person is being invited to |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to include in the returned Invite |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
201 (Created) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
409 (Conflict) | The user is already a member of the group |
403 (Forbidden) | You are not allowed to perform this operation |
404 (Not Found) | The specified place cannot be found |
Destroy Invite
DELETE /invites/{inviteID}
Delete the specified invitation.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
inviteID | String | true | ID of the invitation to be deleted |
Return Status:
HTTP Status Code | Description |
---|---|
204 (No Content) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | You are not allowed to perform this operation |
404 (Not Found) | The specified invitation cannot be found |
Get Invite
GET /invites/{inviteID}
Return the specified invitation.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
inviteID | String | true | ID of the invitation to be returned |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to include in the returned Invite |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | You are not allowed to perform this operation |
404 (Not Found) | The specified invitation cannot be found |
Get Invites
GET /invites/places/{placeID}
Return the invites of the specified place that match the specified criteria.
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
placeID | String | true | ID of the place for the selected invitations |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
inviter | String | false | URI of the person that sent the invite (default is null so all inviters are returned) |
invitee | String | false | URI of the person that was invited (default is null so all invitees are returned) |
startIndex | Integer | false | Zero-relative offset of the first invite to be returned (default is 0) |
count | Integer | false | Maximum number of invites to be returned (default is 25) |
fields | String | false | Fields to include in the returned Invite |
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is missing or malformed |
403 (Forbidden) | You are not allowed to perform this operation |
404 (Not Found) | The specified place cannot be found |
Update Invite
PUT /invites/{inviteID}
Update the state of the specified invitation.
Only the following state transitions are allowed, and only for the specified people:
From State | To State | Authorized For | Notes |
---|---|---|---|
processing, sent, or fulfilled | accepted | Invitee | Causes the invitation to be accepted and group membership established. If the group is configured to require administrator approval, and this invite was not sent by a Jive admin or group admin, the membership will still be pending approval by a Jive or group administrator. |
processing, sent, or fulfilled | resent | Jive Admin, group admin, or the user who sent the invitation | Causes the invitation to be resent to the corresponding invitee. |
any | revoked | Jive Admin, group admin, or the user who sent the invitation | Causes the invitation to be revoked. |
Path Parameters:
Name | Type | Required | Description |
---|---|---|---|
inviteID | String | true | ID of the invitation to be updated |
Query Parameters:
Name | Type | Required | Description |
---|---|---|---|
fields | String | false | Fields to include in the returned Invite |
Takes:
Retrieves:
Return Status:
HTTP Status Code | Description |
---|---|
200 (OK) | Request was successful |
400 (Bad Request) | An input field is missing or malformed or is invalid |
403 (Forbidden) | You are not allowed to perform this operation |
404 (Not Found) | The specified invite cannot be found |