Create a Generic Object
POST/dynamic-svc/object
Creates a new object with the provided details. Requires authorization and user authentication.
Request
- application/json
Body
required
Create 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
Success
- 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": [
"[\"usr_12345\"",
" \"org_67890\"]"
],
"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"
}