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>"
]
}
]
}Create multiple sink items at once. If any item is invalid, no items are created.
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>"
]
}
]
}