List
Create row
List
Create row
Create a new contact row
POST
/
lists
/
contact
/
rows
curl --request POST \
--url https://api.simpu.co/lists/contact/rows \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"columns": {
"674535b2b39158b9aae90188fcec23ec": "John Doe",
"674535b2b39158b9aae90188fcec23ed": "john@acme.org",
"674535b2b39158b9aae90188fcec23ee": "9291234567"
}
}'
{
"row": {
"id": "674535b2b39158b9aae90188fcec23eb",
"columns": {
"674535b2b39158b9aae90188fcec23ec": "John Doe",
"674535b2b39158b9aae90188fcec23ed": "john@acme.org",
"674535b2b39158b9aae90188fcec23ee": "9291234567"
},
"created_datetime": "2024-06-28T23:56:38.128604+00:00",
"updated_datetime": "2024-06-28T23:56:38.128604+00:00"
},
"table": {
"id": "674535b2b39158b9aae90188fcec23eb",
"columns": [
{
"id": "674535b2b39158b9aae90188fcec23ec",
"name": "name",
"type": "TEXT"
},
{
"id": "674535b2b39158b9aae90188fcec23ed",
"name": "Email",
"type": "EMAIL"
},
{
"id": "674535b2b39158b9aae90188fcec23ee",
"name": "Mobile",
"type": "PHONE NUMBER"
}
],
"created_datetime": "2024-06-28T23:56:38.128604+00:00",
"updated_datetime": "2024-06-28T23:56:38.128604+00:00"
}
}
Authorizations
An API key to authenticate requests
Body
application/json
This creates a new row in the specified contact table
The body is of type object
.
Response
200
application/json
Row created successfully
The response is of type object
.
curl --request POST \
--url https://api.simpu.co/lists/contact/rows \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"columns": {
"674535b2b39158b9aae90188fcec23ec": "John Doe",
"674535b2b39158b9aae90188fcec23ed": "john@acme.org",
"674535b2b39158b9aae90188fcec23ee": "9291234567"
}
}'
{
"row": {
"id": "674535b2b39158b9aae90188fcec23eb",
"columns": {
"674535b2b39158b9aae90188fcec23ec": "John Doe",
"674535b2b39158b9aae90188fcec23ed": "john@acme.org",
"674535b2b39158b9aae90188fcec23ee": "9291234567"
},
"created_datetime": "2024-06-28T23:56:38.128604+00:00",
"updated_datetime": "2024-06-28T23:56:38.128604+00:00"
},
"table": {
"id": "674535b2b39158b9aae90188fcec23eb",
"columns": [
{
"id": "674535b2b39158b9aae90188fcec23ec",
"name": "name",
"type": "TEXT"
},
{
"id": "674535b2b39158b9aae90188fcec23ed",
"name": "Email",
"type": "EMAIL"
},
{
"id": "674535b2b39158b9aae90188fcec23ee",
"name": "Mobile",
"type": "PHONE NUMBER"
}
],
"created_datetime": "2024-06-28T23:56:38.128604+00:00",
"updated_datetime": "2024-06-28T23:56:38.128604+00:00"
}
}