Get Invitation
GET/organizations/:organizationId/invitations/:code
Get invitation for user
Request
Path Parameters
organizationId stringrequired
The ID of organization.
code stringrequired
The code of invitation.
Responses
- 200
- 401
- 403
- 404
- 422
- application/json
- Schema
- Example (from schema)
- Example
Schema
data objectrequired
Data of the user who received the invitation.
code stringrequired
familyName stringrequired
givenName stringrequired
email stringrequired
appRole stringrequired
organizationId stringrequired
origin stringrequired
expiredTime numberrequired
createdAtDateString stringrequired
createdAt numberrequired
updatedAtDateString stringrequired
updatedAt numberrequired
{
"data": {
"code": "string",
"familyName": "string",
"givenName": "string",
"email": "string",
"appRole": "string",
"organizationId": "string",
"origin": "string",
"expiredTime": 0,
"createdAtDateString": "string",
"createdAt": 0,
"updatedAtDateString": "string",
"updatedAt": 0
}
}
{
"data": {
"code": "l9CgQxxxxxxxxxx=",
"familyName": "Ashton",
"givenName": "Kevin",
"email": "example@infodeck.io",
"appRole": "RequesterAndViewer",
"organizationId": "o-organizationId",
"origin": "owner",
"expiredTime": 86400,
"createdAtDateString": "2021-01-01T00:00:00.000Z",
"createdAt": 1704067200000,
"updatedAtDateString": "2021-02-01T00:00:00.000Z",
"updatedAt": 1706659200000
}
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Unauthenticated",
"message": "Authentication is required and has failed or has not yet been provided."
}
The request has not permission.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The request has not permission.
message stringrequired
The request has not permission message.
{
"error": "string",
"message": "string"
}
{
"error": "Forbidden",
"message": "Access to the requested resource is forbidden."
}
The resource hasn't found.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The resource hasn't found.
message stringrequired
The resource hasn't found message.
{
"error": "string",
"message": "string"
}
{
"error": "ResourceNotFound",
"message": "The requested resource could not be found."
}
The input data has invalid.
- application/json
- Schema
- Example (from schema)
- Example
Schema
error stringrequired
The input data has invalid.
message stringrequired
The input data has invalid message.
{
"error": "string",
"message": "string"
}
{
"error": "ValidationError",
"message": "Input data validation failed."
}
Loading...