Create Entity
POST/api/workspaces/:workspace_id/entities/
Create an entity.
Request
Path Parameters
workspace_id stringrequired
- application/json
Body
required
properties objectnullablerequired
groups integer[]
entity_type integerrequired
name string
Possible values: non-empty
and <= 128 characters
filename string
Possible values: non-empty
and <= 128 characters
Responses
- 200
- 400
- 401
- 403
- application/json
- Schema
- Example (from schema)
Schema
id integer
name string
properties object
summary_status string
summary string
summary_updated_at string
summary_types string
deleted string
locked boolean
locked_by object
entity_type integerrequired
entity_type_name string
updated_at string
parent_count integer
actions string
param_types string
created_by integer
created_at string
last_updated_by integer
path integer
show_on_dashboard boolean
{
"id": 0,
"name": "string",
"properties": {},
"summary_status": "string",
"summary": "string",
"summary_updated_at": "string",
"summary_types": "string",
"deleted": "string",
"locked": true,
"locked_by": {},
"entity_type": 0,
"entity_type_name": "string",
"updated_at": "string",
"parent_count": 0,
"actions": "string",
"param_types": "string",
"created_by": 0,
"created_at": "string",
"last_updated_by": 0,
"path": 0,
"show_on_dashboard": false
}
Validation error response.
It produces a validation error schema like below.
{
"field1": ["Validation error"],
"non_field_errors": ["Sample non field validation error"]
}
No authentication found or authentication is not correct.
Specified path is not allowed
Permission evaluation:
(Is Authenticated Organization Admin OR Workspace Context Permission) AND Is Simple App Workspace Context
Descriptions:
Is Authenticated Organization Admin
: User must be an Organization Admin.
Workspace Context Permission
: Workspace must be available to the User.
Is Simple App Workspace Context
: Workspace should have a simple
app.
Loading...