expandAttachmentForHumans
Get all metadata for an expanded attachment
Details
- Method:
GET - Path:
/rest/api/3/attachment/{id}/expand/human - Operation ID:
expandAttachmentForHumans
Parameters
{
"id": {
"description": "The ID of the attachment.",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"description": "Metadata for an archive (for example a zip) and its contents.",
"properties": {
"entries": {
"description": "The list of the items included in the archive.",
"items": {
"additionalProperties": false,
"description": "Metadata for an item in an attachment archive.",
"properties": {
"index": {
"description": "The position of the item within the archive.",
"format": "int64",
"readOnly": true,
"type": "integer"
},
"label": {
"description": "The label for the archive item.",
"readOnly": true,
"type": "string"
},
"mediaType": {
"description": "The MIME type of the archive item.",
"readOnly": true,
"type": "string"
},
"path": {
"description": "The path of the archive item.",
"readOnly": true,
"type": "string"
},
"size": {
"description": "The size of the archive item.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"readOnly": true,
"type": "array"
},
"id": {
"description": "The ID of the attachment.",
"format": "int64",
"readOnly": true,
"type": "integer"
},
"mediaType": {
"description": "The MIME type of the attachment.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "The name of the archive file.",
"readOnly": true,
"type": "string"
},
"totalEntryCount": {
"description": "The number of items included in the archive.",
"format": "int64",
"readOnly": true,
"type": "integer"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('expandAttachmentForHumans', {
# Add required parameters here
})