Skip to main content
POST
/
api
/
v1
/
sink-items
/
many
Bulk Create Sink Items
curl --request POST \
  --url http://localhost:3301/api/v1/sink-items/many \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "items": [
    {
      "sink_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "body": "<string>",
      "type": "<string>",
      "url": "<string>",
      "fields": {},
      "occurred_at": "2023-11-07T05:31:56Z"
    }
  ]
}
'
{
  "created": [
    {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "sink_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "workspace_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "title": "<string>",
      "body": "<string>",
      "type": "<string>",
      "url": "<string>",
      "fields": {},
      "occurred_at": "2023-11-07T05:31:56Z",
      "created_at": "2023-11-07T05:31:56Z",
      "updated_at": "2023-11-07T05:31:56Z"
    }
  ],
  "failed": [
    {
      "item": {
        "sink_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "title": "<string>",
        "body": "<string>",
        "type": "<string>",
        "url": "<string>",
        "fields": {},
        "occurred_at": "2023-11-07T05:31:56Z"
      },
      "error": "<string>"
    }
  ],
  "invalid": [
    {
      "item": {
        "sink_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
        "title": "<string>",
        "body": "<string>",
        "type": "<string>",
        "url": "<string>",
        "fields": {},
        "occurred_at": "2023-11-07T05:31:56Z"
      },
      "errors": [
        "<string>"
      ]
    }
  ]
}

Authorizations

Authorization
string
header
required

API key authentication

Body

application/json
items
object[]

Response

200 - application/json

Default Response

created
object[]
failed
object[]
invalid
object[]