Table of Contents
Request example to fetch all the metada of a task:
{
"jsonrpc": "2.0",
"method": "getTaskMetadata",
"id": 133280317,
"params": [
1
]
}
Response example:
{
"jsonrpc": "2.0",
"id": 133280317,
"result": [
{
"metaKey1": "metaValue1",
"metaKey2": "metaValue2"
}
]
}
Request example to fetch metada of a task by name:
{
"jsonrpc": "2.0",
"method": "getTaskMetadataByName",
"id": 133280317,
"params": [
1,
"metaKey1"
]
}
Response example:
{
"jsonrpc": "2.0",
"id": 133280317,
"result": "metaValue1"
}
Request example to add/update metada of a task:
{
"jsonrpc": "2.0",
"method": "saveTaskMetadata",
"id": 133280317,
"params": [
1,
{
"metaName" : "metaValue"
}
]
}
Response example:
{
"jsonrpc": "2.0",
"id": 133280317,
"result": true
}
Request example to remove metada of a task by name:
{
"jsonrpc": "2.0",
"method": "removeTaskMetadata",
"id": 133280317,
"params": [
1,
"metaKey1"
]
}
Response example:
{
"jsonrpc": "2.0",
"id": 133280317,
"result": true
}