Function: uploadAvatar()
uploadAvatar(
client,props):Promise<void>
Uploads an avatar for an organization or project.
Parameters
client
The API client instance
props
The request properties
query
{ orgName: string; projectName: string; } | { orgName: string; } = uploadAvatarQuerySchema
Query parameters (orgName, optional projectName)
body
{ file: File; } = uploadAvatarBodySchema
Request body containing the file to upload
body.file
File = ...
Returns
Promise<void>
Promise that resolves when the avatar is uploaded
Operation Id
upload-avatar
Example
await uploadAvatar(client, {
query: { orgName: 'my-org' },
body: { file: avatarFile }
});