List views
List the views of a list
Returns the views of one list, ordered by their position. Views that filter on something the employee is not allowed to see, such as all projects, are left out.
query Parameters
listThe list: projects, companies, deals, websites, invoices or subscriptions.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
List the views of a list › Responses
Array of ListViewResource
idlistThe lists that can have views. The filter keys and sort fields mirror what the endpoint of each list accepts, under the keys the front-end store uses.
nameFilter key => value, the way the list's filter bar keeps it: records as {id, <label>}.
An object also when empty, which a plain empty array would not be.
sortpositionCreate a view
Adds a view to the end of a list's views.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Create a view › Request Body
listThe list: projects, companies, deals, websites, invoices or subscriptions.
namefiltersFilters as key => value, using the filter keys of the list. A record may be given as a UUID or as {id}.
sortThe sort order of the view. Null uses the default order of the list.
Create a view › Responses
ListViewResource
idlistThe lists that can have views. The filter keys and sort fields mirror what the endpoint of each list accepts, under the keys the front-end store uses.
nameFilter key => value, the way the list's filter bar keeps it: records as {id, <label>}.
An object also when empty, which a plain empty array would not be.
sortpositionReorder views
Sets the position of every view of one list and returns that list's views in their new order.
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Reorder views › Request Body
Every view of one list, each once, with its new position.
Reorder views › Responses
Array of ListViewResource
idlistThe lists that can have views. The filter keys and sort fields mirror what the endpoint of each list accepts, under the keys the front-end store uses.
nameFilter key => value, the way the list's filter bar keeps it: records as {id, <label>}.
An object also when empty, which a plain empty array would not be.
sortpositionUpdate a view
Updates a view. Only the fields present in the request are changed. The list a view belongs to cannot be changed.
path Parameters
listViewThe list view UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Update a view › Request Body
sortThe sort order of the view. Null uses the default order of the list.
namefiltersFilters as key => value, using the filter keys of the list. A record may be given as a UUID or as {id}.
Update a view › Responses
ListViewResource
idlistThe lists that can have views. The filter keys and sort fields mirror what the endpoint of each list accepts, under the keys the front-end store uses.
nameFilter key => value, the way the list's filter bar keeps it: records as {id, <label>}.
An object also when empty, which a plain empty array would not be.
sortpositionDelete a view
Deletes a view. The last view of a list cannot be deleted.
path Parameters
listViewThe list view UUID
Headers
X-Organization-IdUUID of the organization (tenant) the request operates on.
Delete a view › Responses
ListViewResource
idlistThe lists that can have views. The filter keys and sort fields mirror what the endpoint of each list accepts, under the keys the front-end store uses.
nameFilter key => value, the way the list's filter bar keeps it: records as {id, <label>}.
An object also when empty, which a plain empty array would not be.
sortposition