Update Many Views

PUT {{baseUrl}}/api/v2/views/update_many

Allowed For

  • Agents

Request Parameters

The PUT request expects a views object that lists the views to update.

Each view may have the following properties:

NameMandatoryDescription
idyesThe ID of the view to update
positionnoThe new position of the view
activenoThe active status of the view (true or false)

Example Request Body

{
  "views": [
    {"id": 25, "position": 3},
    {"id": 23, "position": 5},
    {"id": 27, "position": 9},
    {"id": 22, "position": 7}
  ]
}

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

{"views":[{"active":true,"conditions":{},"description":"View for recent tickets","execution":{},"id":123,"position":8,"restriction":{},"title":"Tickets updated less than 12 Hours"}]}