Service | API | Method | Data Model | Workflow |
---|---|---|---|---|
urac | /admin/users/invite | PUT | Users |
For each user you sent the following happens:
Type: application/json
Name | Source | Mandatory | Type | Special Format | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
users | Body | YES | Array | includes user object, groups array, and pin object | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
SOAJS has a unified response. Check out this link to understand more the schema of SOAJS response
{ result: true, data: { succeeded: [ { id: '%user_id%' } ], failed: [] } } |
{ "succeeded": [], "failed": [ { "id": "%user_id%", "reason": "User has already been invited." }, { "id": "%user_id%", "reason": "User is already in the tenant tenancy." }, { "id": "%user_id%", "reason": "Failed to generate pin at this." }, { "id": "%user_id%", "reason": "Cannot invite a user without providing its id or username." } ] } |
{ "result":false, "errors":{ "codes":[602], "details":[ { "code":602, "message":"Model error: + %model_error%" } ] } } |
Name | Mandatory | Type | Special Format | Description | |||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
succeeded | YES | Array | Array of Objects | Succeeded response information | |||||||||||||||||||||||||||||||||||
One of the following should exist under the succeeded object:
| |||||||||||||||||||||||||||||||||||||||
failed | YES | String | N/A | Failed response information | |||||||||||||||||||||||||||||||||||
|
Follow this link to check out the response JSON Schema
Code | Description |
---|---|
400 | Business logic required data are missing |
520 | Unable to find user |
602 | Model error: + %model_error% |