v1

latestOpenAPI 3.0.0Apache 2.02026-07-1784052.8 KB
Entities

Add a query to an entity

post/entities/:entity/queries

Request body

idstring

unique query identifier (must be unique inside an entity)

type'findAll' | 'create' | 'update' | 'delete' | 'custom' | 'sql'

Query type

optsobject

Query options

Example request

{
  "id": "customFindAll",
  "type": "findAll",
  "opts": {
    "params": [],
    "conditions": []
  }
}

Response

Success