PUT
/v2/organizations/{id}/avatarUpload an organization avatar
Uploads an avatar image for an organization. Send the image in the avatar multipart form-data field; the request body schema requires this field even though the body itself is marked optional. A 200 response returns the updated organization.
idintegerrequired
The int64 numeric identifier of the organization whose avatar to upload.
Multipart form data containing the organization avatar image.
avatarstringrequired
The avatar image file to upload.
200Returns the updated organization, including its avatar information, ID, name, slug, description, and base permissions.
avatarobjectoptional
basePermissionsobjectrequired
currentUserRolestringoptional
The role of currently authorized user.
Can be null when user has direct access to one of the projects owned by the organization.
descriptionstringoptional
idintegerrequired
namestringrequired
slugstringrequired
400Returned when the upload request is invalid or the required `avatar` field is missing.
codestringrequired
paramsarray<object>optional
401Returned when the request is unauthenticated.
codestringrequired
paramsarray<object>optional
403Returned when access is forbidden.
codestringrequired
paramsarray<object>optional
404Returned when the organization is not found.
codestringrequired
paramsarray<object>optional
Error handling
A 400 is returned when the upload request is invalid or avatar is missing. The id path parameter must identify the organization to update. A 401 indicates an unauthenticated request, a 403 indicates access is forbidden, and a 404 indicates the organization was not found.