Create multiple new roles​
Create multiple new users
- application/json
Request Body required
roles object[]
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
type stringPossible values: [
NeprofileRole
,NeaccessRole
]The role type
name stringThe role name
groups string[]The role's groups
Responses
- 200
- 400
- 500
Expected response to a valid request
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
roles object[]
the list of roles
id uuidthe id
uid stringPossible values:
>= 32 characters
and<= 32 characters
the uid
name stringThe name
groups string[]the groups
- info string
info about the job
job_status object
the status of the job
job_id stringthe job id
status stringthe status
- status int32
the status
oneOf
{
"roles": [
{
"id": "db6f8e8b-65c2-47d5-a0db-90bcc4e9df9e",
"uid": "sponsors_role",
"name": "Sponsors",
"groups": [
"ad_group_name"
]
}
]
}
Bad Request - unable to complete.
- application/json
- Schema
- Example (from schema)
Schema
- MOD1
- MOD2
- error
- error
- errors
oneOf
{
"error": "Invalid JSON syntax. Please check your syntax and try again."
}
Internal Server Error - returned on unhandled exceptions.
- application/json
- Schema
- Example (from schema)
Schema
- error
A message describing the error
{
"error": "Sorry something went wrong"
}
Loading...