Update Organization Profile
Updates the organization profile details. Only account owners have permission to do this. Note: both fields are optional but at least one should be sent in the request. It is not necessary to set the header Content-Type for this request. It is set automatically by the HTTP client.
- multipart/form-data
Request Body
- logo binary
The logo of the organization, file type must be png or jpeg.
- data json
A JSON string that contains the details to update. Contains the following keys:
organization_name
(string): the new name of the organization,timezone_utc_offset
(string): the new timezone offset of the organization,is_approval_required
(boolean): whether the approval workflow is enabled or not. For example: '{"organization_name": "NewOrgName", "timezone_utc_offset": "+02:00", "is_approval_required": true}'
- 200
- 401
- 403
OK
- application/json
- Schema
- Example (from schema)
- response
Schema
- message string required
{
"message": "string"
}
{
"message": "organization profile updated successfully"
}
Unauthorized
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
- error string
extras object
status numbermessage string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
Response Headers
- application/json
- Schema
- Example (from schema)
- response
Schema
- error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}