Skip to main content

Perform multiple CRUD-like operations in a single transaction

POST 

/data-batch

Each step takes either 'DataReadParams' (for Read) or the corresponding arguments of the single-operation endpoints (for Create, Update, Delete, Undelete, Map, Unmap) . See request body schema.

Request

Body

required
    steps object[]required

    Possible values: <= 25

  • Array [
  • oneOf
    op stringrequired
    as stringrequired
    result boolean
    entity stringrequired
    readParams objectrequired
    pagination object

    Pagination settings control how much data from a result is fetched

    offset integer

    The offset the result starts at

    pageAtId integer

    Selects the page with the given id in the result, given a limit (= page size)

    inflate integer

    Adds a number of items before the start offset and after the limit (for pagination use)

    limit integer

    The maximum number of result rows

    order object[]

    Controls the ordering of the result

  • Array [
  • oneOf
    order stringrequired

    Ordering by a pre-defined value sequence - the partial ordering of the given values in the result is preserved

    column stringrequired

    The name of the column to order by

    seq number[]required
  • ]
  • includeTotalCount boolean

    Includes the total result count if pagination options were given

    filter object

    Filter/search terms

    and object
    oneOf
    and object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
    and object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • oneOf
    computedColumns string[]

    List of computed columns to include (by default includes all)

    id integer

    Only return the entity with the given id, returns one or none

    ids integer[]

    Only return the entities with the given ids

    map object

    Map expression to expand properties or relationships with other entities

    oneOf
    entities object

    The list of entity names which are part of the mapping (for mapping relationship tables)

    oneOf

    string

    entity string

    The entity name (for direct mapping via a foreign key)

    ids object

    A list of id tuples to filter by

    oneOf
  • Array [
  • oneOf
  • ]
  • inverse boolean

    Default value: false

    Inverts the result to retrieve non-mapped entities

    filter object

    Filter/search terms

    and object
    oneOf
    and object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
    and object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • oneOf
    resultFilter object

    Filter/search terms

    and object
    oneOf
    and object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
    and object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • or object
    oneOf
  • Array [
  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
  • ]
  • oneOf
    countOnly boolean

    Default value: false

    Only returns a count instead of a list of entities

    idOnly boolean

    Default value: false

    Only retrieves entity ids, omitting all other columns

    optional boolean

    Default value: false

    Indicates that the mapping is optional and may be 'null' in the result

    includeDeleted boolean

    Default value: false

    Includes deleted member entities in the mapping search result

    omitLargeValues boolean

    Default value: false

    Omits 'large' column/prop values (if available)

    omit boolean

    Omit the mapping result from result entities - For intermediate nested mappings

    result string

    The entity to use as the result instead of the mapping relationship entity data

    resultIncludeMapping boolean

    Default value: false

    Also includes mapping even if result entity is specified

    map object

    Nested mapping starting from one of the member entities of this mapping

    oneOf
  • Array [
  • openapi
    info Testiny API

    The Testiny platform API.

    servers
    paths
    components
    tags
    security
    title
  • ]
  • includeDeleted boolean

    Includes soft-deleted entities in the result (if applicable)

    omitLargeValues boolean

    Default value: true

    Omits 'large' column/prop values (if available)

    omitForbidden boolean

    Default value: false

    Omits entities which are not allowed to be read rather than return an error

    asOf string

    Perform a history query given the asOf timestamp (if available)

    idOnly boolean

    Only returns ids in the result, omitting all other properties

    countOnly boolean

    Returns only the length of the result list instead of the result list itself

    label string
  • ]

Responses

Returns 'DataBatchResult'

Schema

    object

Loading...