Skip to main content
POST
/
workflows
/
{workflow_id}
/
datastores
/
{name}
Upsert workflow datastore
curl --request POST \
  --url https://api.trymaitai.ai/api/v1/workflows/{workflow_id}/datastores/{name} \
  --header 'Content-Type: application/json' \
  --header 'X-Maitai-Api-Key: <api-key>' \
  --data '
{
  "schema": {
    "fields": {
      "title": "TEXT",
      "body": "TEXT",
      "source_url": "TAG"
    }
  }
}
'
{
  "data": "<unknown>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.trymaitai.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

X-Maitai-Api-Key
string
header
required

Your Maitai API key from the Portal.

Path Parameters

workflow_id
integer
required
name
string
required

Body

application/json
schema
object
required

Datastore schema used by the workflow.

Response

200 - application/json

Upsert workflow datastore.

data
any