jira.js
    Preparing search index...

    Function updateProjectAvatar

    • Sets the avatar displayed for a project.

      Use Load project avatar to store avatars against the project, before using this operation to set the displayed avatar.

      Permissions required: Administer projects project permission.

      Parameters

      • client: Client
      • parameters: {
            fileName?: string;
            id: string;
            isDeletable?: boolean;
            isSelected?: boolean;
            isSystemAvatar?: boolean;
            owner?: string;
            projectIdOrKey: string;
            urls?: Record<string, any>;
        }
        • OptionalfileName?: string

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

        • id: string

          The ID of the avatar.

        • OptionalisDeletable?: boolean

          Whether the avatar can be deleted.

        • OptionalisSelected?: boolean

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

        • OptionalisSystemAvatar?: boolean

          Whether the avatar is a system avatar.

        • Optionalowner?: string

          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.

        • projectIdOrKey: string

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

        • Optionalurls?: Record<string, any>

          The list of avatar icon URLs.

      • Optionaloptions: RequestOptions

      Returns Promise<void>