Skip to main content
POST
/
collections
/
{collectionId}
/
records
cURL
curl --request POST \
  --url https://api.sparq.ai/v2/collections/{collectionId}/records \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 123,
  "fName": "<string>",
  "lName": "<string>"
}
'
{
  "status": 123
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

collectionId
string
required

Unique identifier for the collection.

Body

application/json

Data to add records to the collection.

id
integer

Identifier for the record.

fName
string

First name.

lName
string

Last name.

Response

Successfully created. The request has been fulfilled and resulted in a new resource being created.

status
integer

Status code indicating the result of the operation.