Create a new entity class
POST/v2/datasync/subkeys/:subKey/entity-classes/:entityClass/versions/:entityClassVersion
Creates a new entity class with its registry configuration, property definitions.
Request
Response Headers
LocationURI of the created entity class
Example
{
"data": {
"name": "user-profile",
"description": "Entity class for storing user profile information including basic details and preferences",
"version": 1,
"config": {
"ttlSec": 2678400
},
"properties": [
{
"name": "username",
"path": "/payload/username",
"valueKind": "string",
"filtering": "full"
},
{
"name": "email",
"path": "/payload/email",
"valueKind": "string",
"filtering": "simple",
"isNullable": true
},
{
"name": "dateOfBirth",
"path": "/payload/dateOfBirth",
"valueKind": "date",
"filtering": "simple"
},
{
"name": "isActive",
"path": "/payload/isActive",
"valueKind": "boolean",
"filtering": "simple"
},
{
"name": "score",
"path": "/payload/score",
"valueKind": "number",
"filtering": "simple"
}
]
},
"links": {
"self": "/subkeys/demo/relationships?cursor=TjIw&limit=20&sort=-createdAt",
"next": "/subkeys/demo/relationships?cursor=TjQw&limit=20&sort=-createdAt"
},
"meta": {
"next_cursor": "TjIw",
"has_next": true,
"limit": 20
}
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
"Accept header value is not acceptable. Supported values are [application/json]"Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}Example
{
"errors": [
{
"errorCode": "DS-0100",
"message": "Entity not found: user-42",
"path": "/payload/score"
}
]
}