Skip to main content
POST
/
tenant
/
insert-many-to-many
Insert Many To Many Endpoint
curl --request POST \
  --url https://api.decodahealth.com/tenant/insert-many-to-many \
  --header 'API-KEY: <api-key>' \
  --header 'Content-Type: application/json' \
  --header 'TENANT: <tenant>' \
  --data '
{
  "tableName": "<string>",
  "records": [
    {}
  ]
}
'
{
  "message": "<string>",
  "tableName": "<string>",
  "insertedCount": 123
}

Headers

TENANT
string
required

The tenant you are making this request on behalf of

API-KEY
string
required

Your api key

Body

application/json

Insert records into a many-to-many association table.

tableName
string
required
records
Records · object[]
required

Response

Successful Response

Response for inserting into many-to-many table.

message
string
required
tableName
string
required
insertedCount
integer
required