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

    object

    required

    pagination

    object

    Pagination settings control how much data from a result is fetched

    offset integer

    The offset the result starts at

    Default value: 0
    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

    Filter/search terms

    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

    Filter/search terms

    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
  • ]

  • property name*

    object

    oneOf

    oneOf

    Any basic JSON value (string, number, boolean, null)

    oneOf

    string

    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

    Entity ids for mapped entities, e.g. testcase_id (also allows null as value)

    property name*

    object

    oneOf

    integer

    inverse boolean

    Inverts the result to retrieve non-mapped entities

    Default value: false

    filter

    object

    Filter/search terms

    and

    object

    oneOf

    Filter/search terms

    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

    Filter/search terms

    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
  • ]

  • property name*

    object

    oneOf

    oneOf

    Any basic JSON value (string, number, boolean, null)

    oneOf

    string

    resultFilter

    object

    Filter/search terms

    and

    object

    oneOf

    Filter/search terms

    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

    Filter/search terms

    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
  • ]

  • property name*

    object

    oneOf

    oneOf

    Any basic JSON value (string, number, boolean, null)

    oneOf

    string

    countOnly boolean

    Only returns a count instead of a list of entities

    Default value: false
    idOnly boolean

    Only retrieves entity ids, omitting all other columns

    Default value: false
    optional boolean

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

    Default value: false
    includeDeleted boolean

    Includes deleted member entities in the mapping search result

    Default value: false
    omitLargeValues boolean

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

    Default value: false
    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

    Also includes mapping even if result entity is specified

    Default value: false

    map

    object

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

    oneOf

  • Array [

  • 0
    1
    2
    3
    4
    5
    6
    7
    8
    9
  • ]

  • includeDeleted boolean

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

    omitLargeValues boolean

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

    Default value: true
    omitForbidden boolean

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

    Default value: false
    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...