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
Object ID
- application/json
Body
required
Upsert request payload
object
object
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
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).
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).
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
- 200
- 400
- 401
- 500
Successful creation or update of object
- application/json
- Schema
- Example (from schema)
Schema
object
object
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
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).
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).
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).
{
"object": {
"authors": [
"["
],
"createdAt": "string",
"data": {},
"deleters": [
"string"
],
"id": "string",
"readers": [
"string"
],
"table": "string",
"updatedAt": "string",
"writers": [
"string"
]
}
}
Invalid JSON
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
{
"error": "string"
}