Group Membership Invitation API endpoint

Table of contents

  1. Fields
  2. List view
  3. Detail
  4. Accept
  5. Reject
  6. Cancel

Fields

FieldDescription
idUUID identificator formatted as a string
user_account_invitationinvited user ID formatted as a string
authgrouprelated group ID formatted as a string
new_managerboolean
new_ownerboolean

List view

  • Allowed portals: public, private, super
  • Request method: GET
  • URL: https://www.brainstem.org/api/private/users/groupmembershipinvitation
  • Data: None
  • Responses: 200 OK; 403 Not allowed; 404 Not found

Use example (using Python API)

resp = client.load_model('groupmembershipinvitation')

Response example

{'group_membership_invitations': [
    {
        'id': 'bdbc1823-7bcf-402d-bcaf-c16ce8da4632',
        'user_account_invitation': 11,
        'authgroup': 12,
        'new_manager': False,
        'new_owner': False
    },
    {
        'id': '4820aea8-151c-422e-9427-d7985a949518',
        'user_account_invitation': 7,
        'authgroup': 48,
        'new_manager': False,
        'new_owner': False
    }
]}

Detail

  • Allowed portals: public, private, super
  • Request method: GET
  • URL: https://www.brainstem.org/api/private/users/groupmembershipinvitation/<id>/
  • Data: None
  • Responses: 200 OK; 403 Not allowed; 404 Not found

Use example (using Python API)

resp = client.load_model('groupmembershipinvitation', id='bdbc1823-7bcf-402d-bcaf-c16ce8da4632')

Response example

{'group_membership_invitation': {
    'id': 'bdbc1823-7bcf-402d-bcaf-c16ce8da4632',
    'user_account_invitation': 11,
    'authgroup': 12,
    'new_manager': False,
    'new_owner': False}
}

Accept

  • Allowed portals: private, super
  • Request method: GET
  • URL: https://www.brainstem.org/api/private/users/groupmembershipinvitation/<id>/
  • Data: None
  • Responses: 200 OK; 400 Bad request; 403 Not allowed; 404 Not found

Use example (using Python API)

resp = client.load_model("groupmembershipinvitation", id="caf8093f-def3-43a4-9c46-543e3f7d63b0", options="accept")

Reject

  • Allowed portals: private, super
  • Request method: GET
  • URL: https://www.brainstem.org/api/private/users/groupmembershipinvitation/<id>/
  • Data: None
  • Responses: 200 OK; 400 Bad request; 403 Not allowed; 404 Not found

Use example (using Python API)

resp = client.load_model("groupmembershipinvitation", id="fa2d3f83-f5e8-4c3f-9006-fc2d92d0c0a0", options="reject")

Cancel

  • Allowed portals: private, super
  • Request method: GET
  • URL: https://www.brainstem.org/api/private/users/groupmembershipinvitation/<id>/
  • Data: None
  • Responses: 200 OK; 400 Bad request; 403 Not allowed; 404 Not found

Use example (using Python API)

resp = client.load_model("groupmembershipinvitation", id="77c92a03-79ce-4cd6-9379-fd3d4f459012", options="cancel")