Skip to content

Latest commit

 

History

History
139 lines (100 loc) · 4.63 KB

File metadata and controls

139 lines (100 loc) · 4.63 KB

Instance Org Invite Actions

Details on the various actions that can be performed on the Instance Org Invite resource, including the expected parameters and the potential responses.

Contents

Delete

Revokes an instance org invitation

result = client.instance_org_invite.delete(
    instanceId=my_instance_id,
    orgId=my_org_id,
    inviteId=my_invite_id)

print(result)

Authentication

The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.User, instanceOrgInvite.*, or instanceOrgInvite.delete.

Available Parameters

Name Type Required Description Default Example
instanceId string Y ID associated with the instance 575ec8687ae143cd83dc4a95
orgId string Y ID associated with the organization 575ec8687ae143cd83dc4a97
inviteId string Y ID associated with the organization invite 575ec8687ae143cd83dc4a94
losantdomain string N Domain scope of request (rarely needed) example.com

Successful Responses

Code Type Description
200 Success If an invite was successfully deleted

Error Responses

Code Type Description
400 Error Error if malformed request
404 Error Error if instance, organization or invite was not found

Get

Returns an organization invite

result = client.instance_org_invite.get(
    instanceId=my_instance_id,
    orgId=my_org_id,
    inviteId=my_invite_id)

print(result)

Authentication

The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.Instance.read, all.User, all.User.read, instanceOrgInvite.*, or instanceOrgInvite.get.

Available Parameters

Name Type Required Description Default Example
instanceId string Y ID associated with the instance 575ec8687ae143cd83dc4a95
orgId string Y ID associated with the organization 575ec8687ae143cd83dc4a97
inviteId string Y ID associated with the organization invite 575ec8687ae143cd83dc4a94
losantdomain string N Domain scope of request (rarely needed) example.com

Successful Responses

Code Type Description
200 Organization Invitation A single organization invite

Error Responses

Code Type Description
400 Error Error if malformed request
404 Error Error if instance, organization, or invite was not found

Resend Invite

Resend an organization invite with modified role info

result = client.instance_org_invite.resend_invite(
    instanceId=my_instance_id,
    orgId=my_org_id,
    inviteId=my_invite_id,
    roleInfo=my_role_info)

print(result)

Authentication

The client must be configured with a valid api access token to call this action. The token must include at least one of the following scopes: all.Instance, all.User, instanceOrgInvite.*, or instanceOrgInvite.resendInvite.

Available Parameters

Name Type Required Description Default Example
instanceId string Y ID associated with the instance 575ec8687ae143cd83dc4a95
orgId string Y ID associated with the organization 575ec8687ae143cd83dc4a97
inviteId string Y ID associated with the organization invite 575ec8687ae143cd83dc4a94
roleInfo Organization Role Info Y Object containing updated role info Organization Role Info Example
losantdomain string N Domain scope of request (rarely needed) example.com

Successful Responses

Code Type Description
201 Organization Invitation The new org invite

Error Responses

Code Type Description
400 Error Error if malformed request
404 Error Error if instance, organization, or invite was not found