Open Context Protocol is live! 🚀 Read the launch post

removeGroup

Remove group

Details

  • Method: DELETE
  • Path: /rest/api/3/group
  • Operation ID: removeGroup

Parameters

{
  "groupname": {
    "description": "",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "groupId": {
    "description": "The ID of the group. This parameter cannot be used with the `groupname` parameter.",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "swapGroup": {
    "description": "As a group's name can change, use of `swapGroupId` is recommended to identify a group.  \nThe group to transfer restrictions to. Only comments and worklogs are transferred. If restrictions are not transferred, comments and worklogs are inaccessible after the deletion. This parameter cannot be used with the `swapGroupId` parameter.",
    "required": false,
    "location": "query",
    "type": "string"
  },
  "swapGroupId": {
    "description": "The ID of the group to transfer restrictions to. Only comments and worklogs are transferred. If restrictions are not transferred, comments and worklogs are inaccessible after the deletion. This parameter cannot be used with the `swapGroup` 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('removeGroup', {
    # Add required parameters here
})