setUserProperty
Set user property
Details
- Method:
PUT - Path:
/rest/api/3/user/properties/{propertyKey} - Operation ID:
setUserProperty
Parameters
{
"accountId": {
"description": "The account ID of the user, which uniquely identifies the user across all Atlassian products. For example, *5b10ac8d82e05b22cc7d4ef5*.",
"required": false,
"location": "query",
"type": "string"
},
"userKey": {
"description": "This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.",
"required": false,
"location": "query",
"type": "string"
},
"username": {
"description": "This parameter is no longer available and will be removed from the documentation soon. See the [deprecation notice](https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-user-privacy-api-migration-guide/) for details.",
"required": false,
"location": "query",
"type": "string"
},
"propertyKey": {
"description": "The key of the user's property. The maximum length is 255 characters.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('setUserProperty', {
# Add required parameters here
})