Skip to main content
PUT
/
invitations
/
{invitationId}
/
role
Update an invitation for a project
curl --request PUT \
  --url https://api.gleap.io/v3/invitations/{invitationId}/role \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'project: <project>' \
  --data '
{
  "role": "<string>"
}
'
{
  "updatedAt": "<string>",
  "createdAt": "<string>",
  "role": "<string>",
  "name": "<string>",
  "type": "organisation",
  "project": {
    "isValid": {},
    "createFromHexString": {},
    "createFromTime": {},
    "generate": {},
    "cacheHexString": "<unknown>"
  },
  "email": "<string>",
  "organisation": {
    "isValid": {},
    "createFromHexString": {},
    "createFromTime": {},
    "generate": {},
    "cacheHexString": "<unknown>"
  }
}

Authorizations

Authorization
string
header
required

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

Headers

project
string
required

Path Parameters

invitationId
string
required

Body

application/json
role
string
required

Response

200 - application/json

Ok

Generic types for Document:

  • T - the type of _id
  • TQueryHelpers - Object with any helpers that should be mixed into the Query type
  • DocType - the type of the actual Document created
updatedAt
string
required
createdAt
string
required
role
string
required
name
string
required
type
enum<string>
required
Available options:
organisation,
project
project
object
email
string
organisation
object