Update Company Entity
- Updates Company Entity.
- This feature is available only in AA-14FBIS panel
Path Parameters
- company-uid integer required
Possible values:
>= 1
Unique Identifier for Company Item
- application/json
Request Body required
- name string required
Possible values:
non-empty
and<= 200 characters
Company name. Should be unique
- info string
Possible values:
<= 1000 characters
Additional Company info
- text_color string required
Possible values: [
auto
,black
,white
]Additional option to customize text color in Company screen. auto - system will try to calculate proper text color according to background image white - white text color will be used black - black text color will be used
- 200
- 400
- 401
- 403
OK
Validation error or required fields are not provided
- Missed json body or wrong param. Response sample:
"error": "Wrong JSON body"
- auth_factors must contain at least one item Response sample:
"error": "Wrong JSON body: no value for `param`"
where param
- is a required field that was not provided
- Field was of the wrong type. Response sample:
"error": "Wrong JSON body: value `param` was of the wrong type"
where param
- is a field of the wrong type
- application/json
- Schema
- Example (from schema)
- Wrong name
- Wrong info
- Wrong text color
- Company exists
- Missed
Schema
- error string
Error message
{
"error": true
}
{
"error": "Wrong name"
}
{
"error": "Wrong info"
}
{
"error": "Wrong text color red, available values are [auto, white, black]"
}
{
"error": "Company with the same name already exists"
}
{
"error": "Wrong JSON body: no value for name"
}
Unauthorized request. Log In
- application/json
- Schema
- Example (from schema)
- Log In
Schema
- error string
Error message
{
"error": "Log In"
}
{
"error": "Log In"
}
Administrator rights required. You are currently logged in with different user account. Log In with administrator rights
- application/json
- Schema
- Example (from schema)
- Admin Rights Required
Schema
- error string
Error message
{
"error": "Administrator rights required"
}
{
"error": "Administrator rights required"
}