Add a user to an organization
POST/api/v1/organizations/adduser
Add user to an organization
Request
Header Parameters
X-API-KEY stringrequired
APIKey
- application/json
Body
required
add user to organization request
orgId string
orgId is the organization ID.
userId string
userId is the user ID.
Responses
- 201
- 400
- 403
- 404
- 500
Created
- application/json
- Schema
- Example (from schema)
Schema
data
id string
message string
status string
{
"data": {},
"id": "string",
"message": "string",
"status": "string"
}
invalid request
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
user is not authorized to add user to organization
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
organization not found
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
internal server error
- application/json
- Schema
- Example (from schema)
Schema
error string
error_code string
{
"error": "string",
"error_code": "string"
}
Loading...