View
All the endpoints that can be called on the View controller.
Endpoints that require the VIEW_READ permission:
GETindex
Endpoints that require the VIEW_CUD permission:
POSTindexPOSTitemDELETEitem
Endpoints that require the GROUP_CUD permission:
GETitem
Endpoints that require the SETTINGS_CRUD permission:
GETviewCategories
Creates a new view.
View the example on how to create conditions and columns.
type: ^[0-9a-zA-Z \-\_]+$
type: ^[a-z_]+$ = 'none'
type: asc|desc = 'asc'
type: ^[a-z_]+$ = 'none'
type: asc|desc = 'asc'
type: number = null
type: number
type: condition
View example
type: columns
View example
OK
POST /api/v2/view HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: multipart/form-data
Accept: */*
Content-Length: 222
{
"title": "text",
"primary_sorting": "text",
"primary_sorting_order": "text",
"secondary_sorting": "text",
"secondary_sorting_order": "text",
"view_category_id": "text",
"view_order_id": "text",
"conditions[]": "text",
"columns[]": "text"
}OK
{
"type": "result",
"message": "View created."
}Updates this specific view.
View the example of POST index on how to update the conditions and columns.
type: ^[0-9a-zA-Z \-\_]+$
type: ^[a-z_]+$ = 'none'
type: asc|desc = 'asc'
type: ^[a-z_]+$ = 'none'
type: asc|desc = 'asc'
type: number = null
type: number
type: string = null
History reason to add to audit logs.
Successful response
PUT /api/v2/view/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Content-Type: application/x-www-form-urlencoded
Accept: */*
Content-Length: 245
"title='text'&primary_sorting='text'&primary_sorting_order='text'&secondary_sorting='text'&secondary_sorting_order='text'&view_category_id='text'&view_order_id='text'&historyReason='text'&conditions[]='text'&columns[]='text'"Successful response
Permanently deletes this view by its ID.
Successful response
DELETE /api/v2/view/{id} HTTP/1.1
Host: {{base_url}}
Authorization: apikey YOUR_SECRET_TOKEN
Accept: */*
Successful response
Last updated