You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
« Previous
Version 5
Next »
Service | API | Method | Data Model | Workflow |
---|
urac | /admin/users/invite | PUT | Users | |
Type: application/json
Name | Source | Mandatory | Type | Special Format | Description |
---|
Users | Body | YES | Object | includes user object, groups array, and pin object |
|
| Name | Source | Mandatory | Type | Special Format | Description |
---|
groups | Body | NO | Array | Array of strings | Groups array | pin | Body | NO | Object | includes code and allowed parameters | Pin Object |
| Name | Mandatory | Type | Description |
---|
code | YES | Boolean | set to True to create a random generated code | allowed | YES | Boolean | set to True if this user is allowed to start pin code login |
| user | Body | YES | Object | Includes one of id, username, or email | User Object |
| One of the following should exist under the user object: Name | Mandatory | Type | Special Format | Description |
---|
id | YES | String | N/A | User ID | username | YES | String | N/A | Username | email | YES | String | N/A | User Email |
|
|
Output
Response
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
Valid Response
{
result: true,
data: 1
}
Invalid Response
{
"result":false,
"errors":{
"codes":[602],
"details":[
{
"code":602,
"message":"Model error: + %model_error%"
}
]
}
}
Response schema
Follow this link to check out the response JSON Schema
SOAJS Error Codes
| |
---|
400 | Business logic required data are missing |
520 | Unable to find user |
602 | Model error: + %model_error% |
Add Comment