Skip to main content

Upsert a Generic Object

PUT 

/dynamic-svc/object/:objectId

Creates a new dynamic object or updates an existing one based on the provided data. Requires authorization and user authentication.

Request

Path Parameters

    objectId stringrequired

    Object ID

Body

required

Upsert request payload

    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.

    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
    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).

Responses

Successful creation or update of object

Schema

    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).

Loading...