Skip to main content

Update Objects

POST 

/dynamic-svc/objects/update

Updates objects in a specified table based on provided conditions. Requires authorization and user authentication.

Request

Body

required

Update request payload

    filters

    object[]

  • Array [

  • fields string[]
    jsonValues string

    JSONValues is a JSON marshalled array of values. It's JSON marhalled due to the limitations of the Swaggo -> OpenAPI 2.0 -> OpenAPI Go generator toolchain.

    op string

    Possible values: [equals, containsSubstring, startsWith, intersects, isInList]

  • ]

  • object

    object

    authors string[]

    Authors is a list of user ID and organization ID who created the object. If an organization ID is not provided, the currently active organization will be queried from the User Svc.

    createdAt string

    data

    object

    required

    property name* any
    deleters string[]

    Deleters is a list of user IDs and role IDs that can delete the object. _self can be used to refer to the caller user's userId and _org can be used to refer to the user's currently active organization (if exists).

    id string
    readers string[]

    Readers is a list of user IDs and role IDs that can read the object. _self can be used to refer to the caller user's userId and _org can be used to refer to the user's currently active organization (if exists).

    table stringrequired
    updatedAt string
    writers string[]

    Writers is a list of user IDs and role IDs that can write the object. _self can be used to refer to the caller user's userId and _org can be used to refer to the user's currently active organization (if exists).

    table string

Responses

Successful update of objects

Schema

    object

Loading...