Menu
Update View Items
Search for view's items
PUT
/api/views/{view_id}/itemsUse it in a workflow
- Add a step and choose the Gorgias connector.
- Pick the Update View Items action (under Views).
- Fill in the fields below, then reference the result from later steps as
{{updateViewItems.response.data}}.
Request
Path parameters
Query parameters
Request body
Enter the body as JSON in the step's Body field.
{
"view": {
"id": 123,
"category": "user",
"created_datetime": "2019-11-23T15:59:41.966927",
"deactivated_datetime": "2020-01-30T11:04:34.345123",
"decoration": {
"emoji": "🙏"
},
"fields": [
"id",
"details",
"tags"
],
"filters": "eq(ticket.assignee_user.id, '{{current_user.id}}') && eq(ticket.status, 'open')",
"name": "My view",
"order_by": "updated_datetime",
"order_dir": "desc",
"search": "where is my order?",
"slug": "my-tickets",
"type": "ticket-list"
}
}
Response
Returns 202 with an object. Read it in later steps with {{updateViewItems.response.data.<field>}}.
{
"data": {
"subject": "Refund request",
"meta": {},
"requester": {
"id": 7,
"email": "sender@gorgias.io",
"name": "Sender Doe",
"firstname": "Sender",
"lastname": "Doe"
},
"customer": {
"id": 7,
"email": "sender@gorgias.io",
"name": "Sender Doe",
"firstname": "Sender",
"lastname": "Doe"
},
"assignee_user": {
"id": 4,
"email": "agent-smith@gorgias.io",
"name": "John Smith",
"firstname": "John",
"lastname": "Smith"
},
"assignee_user_id": 4,
"assignee_team": {
"id": 8,
"name": "Tech team",
"decoration": {
"emoji": {
"colons": ":wink:",
"emoticons": [
";)",
";-)"
],
"id": "wink",
"name": "Winking Face",
"native": "😉",
"skin": null,
"unified": "1f609"
}
}
},
"assignee_team_id": 8,
"tags": [
{
"id": 5,
"name": "refund",
"uri": "https://gorgias.gorgias.io/api/tags/5/"
}
],
"custom_fields": {
"6": {
"id": 6,
"value": "Some value"
}
},
"language": "fr"
},
"meta": {
"current_cursor": "MTU5MzE2NDMwMDAwMDAwMC1mYWxzZQ==",
"next_items": "/api/views/10/items/?direction=next&ignored_item=1781&cursor=MTU5MzA5ODYyNDAwMDAwMC1mYWxzZQ%3D%3D",
"prev_items": "/api/views/10/items/?direction=prev&cursor=MTU5MzEyMTk4MTAwMDAwMC1mYWxzZQ%3D%3D&ignored_item=1743"
}
}
Need more? See the Gorgias guide for connection setup and behaviour shared by every action.
Was this page helpful?