reorderCustomFieldOptions
Reorder custom field options (context)
Details
- Method:
PUT - Path:
/rest/api/3/field/{fieldId}/context/{contextId}/option/move - Operation ID:
reorderCustomFieldOptions
Parameters
{
"fieldId": {
"description": "The ID of the custom field.",
"required": true,
"location": "path",
"type": "string"
},
"contextId": {
"description": "The ID of the context.",
"required": true,
"location": "path",
"type": "integer",
"format": "int64"
},
"after": {
"description": "The ID of the custom field option or cascading option to place the moved options after. Required if `position` isn't provided.",
"required": false,
"location": "body",
"type": "string"
},
"customFieldOptionIds": {
"description": "A list of IDs of custom field options to move. The order of the custom field option IDs in the list is the order they are given after the move. The list must contain custom field options or cascading options, but not both.",
"required": true,
"location": "body",
"type": "array"
},
"position": {
"description": "The position the custom field options should be moved to. Required if `after` isn't provided.",
"required": false,
"location": "body",
"type": "string",
"enum": [
"First",
"Last"
]
}
}Response Schema
{}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('reorderCustomFieldOptions', {
# Add required parameters here
})