View

All the endpoints that can be called on the View controller.

Endpoints that require the VIEW_READ permission:

  • GET index

Endpoints that require the VIEW_CUD permission:

  • POST index

  • POST item

  • DELETE item

Endpoints that require the GROUP_CUD permission:

  • GET item

Endpoints that require the SETTINGS_CRUD permission:

  • GET viewCategories

index

get

Returns all the existing views.

Authorizations
apiKeystringRequired
Query parameters
querystring · min: 1OptionalPattern: ^[0-9a-zA-Z \-\_]+
itemStartnumberOptionalDefault: 0
itemLimitnumber · max: 9999OptionalDefault: 15
Responses
200Success

No content

get
/api/v2/view
200Success

No content

index

post

Creates a new view.

View the example on how to create conditions and columns.

Authorizations
apiKeystringRequired
Body
titlestring · min: 4RequiredExample: example titlePattern: ^[0-9a-zA-Z \-\_]+$
primary_sortingstringOptionalDefault: noneExample: nonePattern: ^[a-z_]+$
primary_sorting_orderstring · enumOptionalDefault: ascPossible values:
secondary_sortingstringOptionalDefault: noneExample: nonePattern: ^[a-z_]+$
secondary_sorting_orderstring · enumOptionalDefault: ascPossible values:
view_category_idnumberOptional
view_order_idnumberOptionalExample: 1
Responses
200

index example

application/json
post
/api/v2/view
200

index example

item

get

Returns the view by its ID.

Authorizations
apiKeystringRequired
Path parameters
idnumberRequired
Responses
200Success

No content

get
/api/v2/view/{id}
200Success

No content

item

put

Updates this specific view.

View the example of POST index on how to update the conditions and columns.

Authorizations
apiKeystringRequired
Path parameters
idnumberRequired
Body
titlestring · min: 4RequiredPattern: ^[0-9a-zA-Z \-\_]+$
primary_sortingstringOptionalDefault: nonePattern: ^[a-z_]+$
primary_sorting_orderstring · enumOptionalDefault: ascPossible values:
secondary_sortingstringOptionalDefault: nonePattern: ^[a-z_]+$
secondary_sorting_orderstring · enumOptionalDefault: ascPossible values:
view_category_idnumberOptional
view_order_idnumberOptional
historyReasonstringOptional
Responses
200Success

No content

put
/api/v2/view/{id}
200Success

No content

item

delete

Permanently deletes this view by its ID.

Authorizations
apiKeystringRequired
Path parameters
idnumberRequired
Responses
200Success

No content

delete
/api/v2/view/{id}
200Success

No content

Last updated