POST
/
upserts
curl --request POST \
  --url https://api.vectorify.ai/v1/upserts \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection": {
    "slug": "invoices",
    "metadata": {
      "customer_name": {
        "type": "string"
      },
      "status": {
        "type": "enum",
        "options": [
          "draft",
          "sent",
          "paid"
        ]
      }
    }
  },
  "items": [
    {
      "id": 123,
      "data": {
        "customer_name": "John Doe",
        "status": "draft",
        "amount": "100",
        "currency": "USD",
        "due_date": "2023-10-01"
      },
      "metadata": {
        "customer_name": "John Doe",
        "status": "draft"
      },
      "tenant": 987,
      "url": "<string>"
    }
  ]
}'
{
  "data": {
    "result": "Queued",
    "created_at": "<string>"
  }
}

Authorizations

Api-Key
string
header
required

Body

application/json

Response

201
application/json

UpsertStore

The response is of type object.

POST
/
upserts
curl --request POST \
  --url https://api.vectorify.ai/v1/upserts \
  --header 'Api-Key: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "collection": {
    "slug": "invoices",
    "metadata": {
      "customer_name": {
        "type": "string"
      },
      "status": {
        "type": "enum",
        "options": [
          "draft",
          "sent",
          "paid"
        ]
      }
    }
  },
  "items": [
    {
      "id": 123,
      "data": {
        "customer_name": "John Doe",
        "status": "draft",
        "amount": "100",
        "currency": "USD",
        "due_date": "2023-10-01"
      },
      "metadata": {
        "customer_name": "John Doe",
        "status": "draft"
      },
      "tenant": 987,
      "url": "<string>"
    }
  ]
}'
{
  "data": {
    "result": "Queued",
    "created_at": "<string>"
  }
}

Authorizations

Api-Key
string
header
required

Body

application/json

Response

201
application/json

UpsertStore

The response is of type object.