API referenceentity
Create a new entity
Creates a non-content entity in the namespace. Content entities must be created via POST /index, not this endpoint.
Authorization
ApiKeyAuth X-API-Key<token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
curl -X POST "https://example.com/entity" \ -H "Content-Type: application/json" \ -d '{ "name": "string" }'{
"id": "string",
"entity_id": "string",
"name": "string",
"description": "string",
"type": "content",
"linked_content": [
{
"id": "string",
"title": "string",
"description": "string",
"url": "http://example.com",
"content": "string",
"type": "image",
"ref": "string"
}
],
"linked_entities": [
{
"id": "string",
"name": "string",
"description": "string",
"url": "http://example.com",
"ref": "string",
"type": "content",
"linked_content": [
{
"id": "string",
"title": "string",
"description": "string",
"url": "http://example.com",
"content": "string",
"type": "image",
"ref": "string"
}
],
"linked_entities": [
{
"id": "string",
"name": "string",
"description": "string",
"url": "http://example.com",
"ref": "string",
"type": "content",
"linked_content": [
{
"id": "string",
"title": "string",
"description": "string",
"url": "http://example.com",
"content": "string",
"type": "image",
"ref": "string"
}
],
"linked_entities": []
}
]
}
]
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}