Create Invitation
POST/organizations/:organizationId/invitations
Create invitation for organization
Request
Path Parameters
organizationId stringrequired
The ID of organization.
- application/json
Body
required
email stringrequired
The email of user.
familyName stringrequired
The family name of user.
givenName stringrequired
The given name of user.
teamIds string[]required
The team ids of user.
Responses
- 200
- 401
- 403
- 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
{
"data": {
"code": "string",
"familyName": "string",
"givenName": "string",
"email": "string",
"appRole": "string",
"organizationId": "string",
"origin": "string",
"expiredTime": 0,
"createdAtDateString": "string",
"createdAt": 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
}
}
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 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...