This API provides a collection of JSON data endpoints to perform specific actions (commands) against Mindful Entity Kinds.
Connecting to the API
This API requires user, machine, or company token .
In addition to the authentication header, make sure to send the namespace header to designate the intended for your request! This API also supports the view parameter to designate the tenant view. For most use cases, this should be main.
The commands key in the metadata response indicates the name, resource, and URL to access to send a command.
{
"_id": String, // The command name
"resource": String, // The kebab-case command name
"endpoint": String, // The relative URL of the command route
}
Entity Kind Metadata
The entities key in the metadata response indicates the name and resource of each Entity Kind. It includes metadata about available props (fields), edges (single related item), connections (multiple related items), embedManies (multiple embedded Entity Fragments), and embedOnes (single embedded Entity Fragment).
If the Entity Kind supports Variant Forms, the same information is available under the forms key for each Variant Form.
Entity Metadata
{
"_id": String, // The Entity Kind type key
"resource": String, // The kebab-case Entity Kind type key
"forms": EntityForm[], // An array of supported variant forms
"connections": Reference[],
"edges": Reference[],
"embedManies": Embed[],
"embedOnes": Embed[],
"props": Attribute[],
}
Entity Form Metadata
{
"_id": String, // The Entity Variant Form type key
"resource": String, // The kebab-case Entity Variant Form type key
"connections": Reference[],
"edges": Reference[],
"embedManies": Embed[],
"embedOnes": Embed[],
"props": Attribute[],
}
Entity Fragment Metadata
{
"_id": String, // The Entity Fragment type key
"resource": String, // The kebab-case Entity Kind type key
"forms": EntityForm[], // An array of supported variant forms
"connections": Reference[],
"edges": Reference[],
"embedManies": Embed[],
"embedOnes": Embed[],
"props": Attribute[],
}
Attribute Metadata
{
"_id": String, // The field key/name
"required": Boolean, // If the field is required
}
This example creates a new Email Channel Deployment, using the "Omeda" Variant Form, specifying the day, name, and subject line fields, and adding the Email Channel as a related edge.
This example creates a new Website Channel Topic, using the Root Variant Form, specifying the name and slug fields, and setting the website channel edge.
Please feel free to leave feedback on this page and let us know what you think.
This list is abbreviated — the current list of Entity Kinds can be found in the .
This list is abbreviated — the current list of available commands can be found in the .
That's all for now! If you have any specific questions about using the Entity Command API or have suggestions on how this guide can be improved, please let us know via .