PUT
/
api
/
v1
/
organization-invitations
/
{id}
/
Update
curl --request PUT \
  --url https://api.main.apexscore.ai/api/v1/organization-invitations/{id}/ \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "status": 0,
  "organization_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "last_name": "<string>",
  "role": 0,
  "accessible_portfolio_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}'
{
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "token": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "expiry_date": "2023-11-07T05:31:56Z",
  "status": 0,
  "organization": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "<string>"
  },
  "inviter_member": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "first_name": "<string>",
    "last_name": "<string>",
    "email": "jsmith@example.com"
  },
  "email": "jsmith@example.com",
  "first_name": "<string>",
  "last_name": "<string>",
  "email_sent": true,
  "role": 0,
  "accessible_portfolios": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

A UUID string identifying this organization invitation.

Body

application/json
organization_id
string<uuid>
required
email
string<email>
required

Invitee's email address.

Maximum length: 255
status
enum<integer>

Status of the invitation, default status is pending.

  • 0 - pending
  • 1 - accepted
  • 2 - cancelled
  • 3 - expired
  • 4 - revoked
Available options:
0,
1,
2,
3,
4
first_name
string | null

Invitee's first name.

Maximum length: 25
last_name
string | null

Invitee's last name.

Maximum length: 25
role
enum<integer>

Invitee's role, default role is member.

  • 0 - member
  • 1 - collaborator
  • 2 - administrator
Available options:
0,
1,
2
accessible_portfolio_ids
string<uuid>[]

Response

200 - application/json
id
string<uuid>
required
token
string<uuid>
required

Token is used to validate the invitation.

expiry_date
string<date-time>
required

Date is calculated in save().

organization
object
required
inviter_member
object
required
email
string<email>
required

Invitee's email address.

Maximum length: 255
email_sent
boolean
required
accessible_portfolios
object[]
required
status
enum<integer>

Status of the invitation, default status is pending.

  • 0 - pending
  • 1 - accepted
  • 2 - cancelled
  • 3 - expired
  • 4 - revoked
Available options:
0,
1,
2,
3,
4
first_name
string | null

Invitee's first name.

Maximum length: 25
last_name
string | null

Invitee's last name.

Maximum length: 25
role
enum<integer>

Invitee's role, default role is member.

  • 0 - member
  • 1 - collaborator
  • 2 - administrator
Available options:
0,
1,
2