Action: Update Ticket
Freshdesk Operation
Last updated
{
"handle": "update-ticket",
"state": "inDev",
"meta": {
"short": "Update Ticket",
"description": "Update an existing ticket in Freshdesk"
},
"input": [
{
"name": "id",
"type": "Integer",
"required": true,
"meta": {
"description": "The ID of the ticket to update"
}
},
{
"name": "subject",
"type": "String",
"required": false,
"meta": {
"description": "The subject of the ticket"
}
},
{
"name": "description",
"type": "String",
"required": false,
"meta": {
"description": "The description of the ticket"
}
},
{
"name": "priority",
"type": "Integer",
"required": false,
"meta": {
"description": "The priority of the ticket (1=Low, 2=Medium, 3=High, 4=Urgent)"
}
},
{
"name": "status",
"type": "Integer",
"required": false,
"meta": {
"description": "The status of the ticket (2=Open, 3=Pending, 4=Resolved, 5=Closed)"
}
}
],
"output": [
{
"name": "id",
"type": "Integer",
"selector": ["id"],
"meta": {
"description": "The ID of the ticket."
}
},
{
"name": "subject",
"type": "String",
"selector": ["subject"],
"meta": {
"description": "The subject of the ticket."
}
},
{
"name": "status",
"type": "Integer",
"selector": ["status"],
"meta": {
"description": "The status of the ticket."
}
}
],
"steps": [
{
"type": "http",
"http": {
"method": "PUT",
"path": "/api/v2/tickets/{{id}}",
"headers": {
"Content-Type": "application/json"
},
"bodyTemplate": {
"value": "{\"ticket\": {\"subject\": \"{{subject}}\", \"description\": \"{{description}}\", \"priority\": {{priority}}, \"status\": {{status}}}}",
"placeholders": [
{
"name": "subject",
"type": "String",
"description": "The subject of the ticket",
"required": false
},
{
"name": "description",
"type": "String",
"description": "The description of the ticket",
"required": false
},
{
"name": "priority",
"type": "Integer",
"description": "The priority of the ticket",
"required": false
},
{
"name": "status",
"type": "Integer",
"description": "The status of the ticket",
"required": false
}
]
}
}
}
]
}