updateProjectAvatar
Set project avatar
Details
- Method:
PUT - Path:
/rest/api/3/project/{projectIdOrKey}/avatar - Operation ID:
updateProjectAvatar
Parameters
{
"projectIdOrKey": {
"description": "The ID or (case-sensitive) key of the project.",
"required": true,
"location": "path",
"type": "string"
},
"fileName": {
"description": "The file name of the avatar icon. Returned for system avatars.",
"required": false,
"location": "body",
"type": "string"
},
"id": {
"description": "The ID of the avatar.",
"required": true,
"location": "body",
"type": "string"
},
"isDeletable": {
"description": "Whether the avatar can be deleted.",
"required": false,
"location": "body",
"type": "boolean"
},
"isSelected": {
"description": "Whether the avatar is used in Jira. For example, shown as a project's avatar.",
"required": false,
"location": "body",
"type": "boolean"
},
"isSystemAvatar": {
"description": "Whether the avatar is a system avatar.",
"required": false,
"location": "body",
"type": "boolean"
},
"owner": {
"description": "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.",
"required": false,
"location": "body",
"type": "string"
},
"urls": {
"description": "The list of avatar icon URLs.",
"required": false,
"location": "body",
"type": "object"
}
}Response Schema
{}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('updateProjectAvatar', {
# Add required parameters here
})