Create a Memory Kind
Create a kind and its version 1.
Authorization
API Key Authenticate using API Key in request header
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://api.bem.ai/v3/structured-memory/kinds" \ -H "Content-Type: application/json" \ -d '{ "name": "invoice", "attributesSchema": { "type": "object", "properties": { "invoiceNumber": { "type": "string" }, "totalAmount": { "type": "number" } }, "required": [ "invoiceNumber", "totalAmount" ] } }'{
"id": "string",
"name": "string",
"latestVersionNum": 0,
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z"
}{
"error": "string",
"code": "string"
}{
"error": "string",
"code": "string"
}See also
- Structured Memory guide — worked example, Memory URIs, limits, error codes