POST
/
api
/
resources
/
{schemaDefinitionNameOrId}
/
batch
Batch Upload Resources
curl --request POST \
  --url https://api.embedreach.com/api/resources/{schemaDefinitionNameOrId}/batch \
  --header 'Content-Type: application/json' \
  --data '{
  "resources": [
    {}
  ]
}'
{
  "success": true,
  "message": "<string>",
  "data": {
    "batchId": "<string>",
    "message": "<string>",
    "recordCount": 123,
    "schemaDefinitionId": "<string>"
  }
}

Headers

reach-tenant-id
string

If using a platform scoped JWT, you can pass in a header to impersonate a specific tenant to impersonate the request as.

Path Parameters

schemaDefinitionNameOrId
string
required

The name or id of the schema definition to upload the resources to

Query Parameters

onconflict
enum<string>
default:upsert

What to do if the resource already exists. upsert will update the resource if it exists, reject will throw an error if the resource already exists

Available options:
upsert,
reject
ignoreUnknownFields
boolean | null
default:false

Whether to allow extra fields that are not defined in the schema. If true, extra fields will be accepted but not saved. If false, requests with extra fields will be rejected.

Body

application/json

Response

202
application/json

Status 202 response

The response is of type object.