WorkSmart Dev
HomeSign In
  • Introduction
  • REST Web API
    • Oauth 2.0 Authorization
      • Authorization Code Flow
      • Token (Auth Code Flow)
      • Token (Client Credentials)
    • Records
      • Create Record
      • Read Record
      • Update Record
      • Delete Record
      • Read Records By View
      • Add Comment
      • Add Attachment
      • Download Attachment
    • List Sites
    • Columns
      • List of Columns
  • Webhook
    • Configure a Webhook
Powered by GitBook
On this page
  • Parameters
  • Sample Request
  • Sample Response

Was this helpful?

  1. REST Web API
  2. Records

Create Record

Create record in an application:

URL : /api/v1/app/{app_id}/record/ Method : POST

Parameters

access_token (required, header parameter) Send this as header – e.g.“Authorization: Bearer access_token”

app_id (required, path parameter) Application Id App for where the record is present

API request must send all required parameters for creating a record as POST request body.

If your app has “Draft” mode enabled, to save your record into “Draft” state, you can pass a parameter “draft” with a value of “1” as part of your POST request body. By default, record will always be saved in “Published” state. To change a record from “Draft” state to “Published” state, you must send an UPDATE record API request with the “draft” parameter value as 0.

Sample Request

curl -H "Authorization: Bearer {access_token}" -X POST https://my.worksmart.app/api/v1/app/1234/record/ -d 'f1=New Record Data'

Sample Response

{
   "f1":"New Record Data"
}
PreviousRecordsNextRead Record

Last updated 3 years ago

Was this helpful?