Open Context Protocol is live! 🚀 Read the launch post

deleteActor

Delete actors from project role

Details

  • Method: DELETE
  • Path: /rest/api/3/project/{projectIdOrKey}/role/{id}
  • Operation ID: deleteActor

Parameters

{
  "projectIdOrKey": {
    "description": "The project ID or project key (case sensitive).",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "id": {
    "description": "The ID of the project role. Use [Get all project roles](#api-rest-api-3-role-get) to get a list of project role IDs.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "user": {
    "description": "The user account ID of the user to remove from the project role.",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "group": {
    "description": "The name of the group to remove from the project role. This parameter cannot be used with the `groupId` parameter. As a group's name can change, use of `groupId` is recommended.",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "groupId": {
    "description": "The ID of the group to remove from the project role. This parameter cannot be used with the `group` parameter.",
    "required": false,
    "location": "query",
    "type": "string"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('jira')

# Call this tool
result = await agent.call_tool('deleteActor', {
    # Add required parameters here
})