Logo

Getting Started

IntroductionAuthentication

OTP

POSTRequest OTPPOSTVerify OTPDELETERevoke OTPGETGet TokenGETGet OTP by Recipient

Lists

GETGet contact listGETGet rowPOSTCreate rowPATCHUpdate rowDELETEDelete row
Logo
DocumentationAPI ReferenceChangelog

Lists

Update row

Update an existing row in the contact list

Request

curl -X PATCH "https://api.simpu.co/lists/contact/rows/{row_id}" \
  -H "Content-Type: application/json" \
  -d '{
    "columns": {
      "674535b2b39158b9aae90188fcec23ec": "John Doe",
      "674535b2b39158b9aae90188fcec23ed": "john@acme.org",
      "674535b2b39158b9aae90188fcec23ee": "9291234567"
    }
  }'

Response

{
  "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"
  }
}
PATCH

/lists/contact/rows/{row_id}

Request Parameters

PATHParameters
row_id
stringrequired
The unique ID of the row to update

Request Body

application/json

Updates the column of a specified row in the contact table

columns
object
The data values with column IDs as keys and their corresponding updated data as values.
Example: {"674535b2b39158b9aae90188fcec23ec":"John Doe","674535b2b39158b9aae90188fcec23ed":"john@acme.org","674535b2b39158b9aae90188fcec23ee":"9291234567"}

Response

application/json

Successfully updated the row

row
object
No description provided
id
stringrequired
ID of the row
Example: "674535b2b39158b9aae90188fcec23eb"
columns
objectrequired
Data values for each column in the row
Example: {"674535b2b39158b9aae90188fcec23ec":"John Doe","674535b2b39158b9aae90188fcec23ed":"john@acme.org","674535b2b39158b9aae90188fcec23ee":"9291234567"}
created_datetime
string
Date and time the Row was created
Example: "2024-06-28T23:56:38.128604+00:00"
updated_datetime
string
Date and time the Row was last updated, if any
Example: "2024-06-28T23:56:38.128604+00:00"
table
object
No description provided
id
stringrequired
ID of the Table
Example: "674535b2b39158b9aae90188fcec23eb"
columns
object[]required
List of column names in the table
Example: [{"id":"674535b2b39158b9aae90188fcec23ec","name":"name","type":"TEXT"},{"id":"674535b2b39158b9aae90188fcec23ed","name":"Email","type":"EMAIL"},{"id":"674535b2b39158b9aae90188fcec23ee","name":"Mobile","type":"PHONE NUMBER"}]
id
stringrequired
ID of the column
Example: "674535b2b39158b9aae90188fcec23ec"
name
stringrequired
Name of the column
Example: "name"
type
stringrequired
Type of the column
Allowed values: "TEXT" | "NUMBER" | "DATE" | "PHONE NUMBER" | "EMAIL" | "URL" | "SELECT" | "MULTI SELECT"
Example: "TEXT"
created_datetime
string
Date and time the table was created
Example: "2024-06-28T23:56:38.128604+00:00"
updated_datetime
string
Date and time the table was last updated, if any
Example: "2024-06-28T23:56:38.128604+00:00"

Built with Chakra UI

Request

curl -X PATCH "https://api.simpu.co/lists/contact/rows/{row_id}" \
  -H "Content-Type: application/json" \
  -d '{
    "columns": {
      "674535b2b39158b9aae90188fcec23ec": "John Doe",
      "674535b2b39158b9aae90188fcec23ed": "john@acme.org",
      "674535b2b39158b9aae90188fcec23ee": "9291234567"
    }
  }'

Response

{
  "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"
  }
}