provider Project avatars PUT /rest/api/3/project/{projectIdOrKey}/avatar
@utdk/jira /rest/api/3/project/{projectIdOrKey}/avatar
Set project avatar
Sets the avatar displayed for a project. Use [Load project avatar](#api-rest-api-3-project-projectIdOrKey-avatar2-post) to store avatars against the project, before using this operation to set the displayed avatar. **[Permissions](#permissions) required:** *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg).
projectIdOrKey path required
The ID or (case-sensitive) key of the project.
string

Try it

Authentication
Configure credentials for The Jira Cloud platform REST API
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

updateprojectavatar
PUT/rest/api/3/project/{projectIdOrKey}/avatar
Sets the avatar displayed for a project. Use [Load project avatar](#api-rest-api-3-project-projectIdOrKey-avatar2-post) to store avatars against the project, before using this operation to set the displayed avatar. **[Permissions](#permissions) required:** *Administer projects* [project permission](https://confluence.atlassian.com/x/yodKLg).

Parameters

required

The ID or (case-sensitive) key of the project.

Input

The file name of the avatar icon. Returned for system avatars.

required

The ID of the avatar.

Whether the avatar can be deleted.

Whether the avatar is used in Jira. For example, shown as a project's avatar.

Whether the avatar is a system avatar.

The owner of the avatar. For a system avatar the owner is null (and nothing is returned). For non-system avatars this is the appropriate identifier, such as the ID for a project or the account ID for a user.

The list of avatar icon URLs.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import jira from '@utdk/jira';

await jira.updateprojectavatar()