/api/v2/bpm/auth/registration
Метод создает нового пользователя панели администратора BPMS. Каждому новому юзеру поумолчанию назначается роль "User", имеющая ряд ограничений.
- application/json
Request Body
- object
Responses
- 200
- 400
- 401
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 1,
"message": "Language is successfully deleted",
"response": {},
"preparingsTime": 0.062
}
Bad Request
- application/json
- Schema
- Example (from schema)
- example-0
- example-1
- example-2
- example-3
Schema
- object
{}
400
{
"status": 0,
"message": "This field is required.",
"response": {
"lang_name": [
"This field is required."
]
},
"preparingsTime": 0.027
}
400_2
{
"status": 0,
"message": "This field may not be blank.",
"response": {
"lang_name": [
"This field may not be blank."
]
},
"preparingsTime": 0.031
}
400_3
{
"status": 0,
"message": "This field may not be null.",
"response": {
"lang_name": [
"This field may not be null."
]
},
"preparingsTime": 0.03
}
400_4
{
"status": 0,
"message": "This language is not used",
"response": {},
"preparingsTime": 0.044
}
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
- object
{}
{
"status": 0,
"message": "Authentication credentials were not provided.",
"response": {
"detail": "Authentication credentials were not provided."
},
"preparingsTime": 0.002
}
Loading...