The Orgzit Web API is an interface for querying information from and enacting change in an Orgzit workspace. You can use the API not only to create records but also to fetch and update records in Orgzit.

Below is a snapshot of a Task Tracker workspace. Let’s see the steps to create new records in the Task Tracker table by API Integration.

Create Records

Creating records through API is a three-step process:

  1. Accessing the API Key

  2. Making a Record Create Request

  3. Making the Requests to Create the Record and Getting the Response

1. Accessing the API Key

To access your API Key, follow the steps mentioned in the support doc here.

2. Making a Record Create Request

Once you retrieve the API key from your account, you can start making requests with the API.

  • You will need to pass the key to the API in the header of your requests. Paste the key you copied in the Authorization Header.
    Below is a snapshot of the Postman software Headers section.

  • Set the Request Method to POST.

  • Set the Request Payload in the JSON format.

{

"dataform_id": "jhtxltf37l",

"dataform": "/api/1/dataform/jhtxltf37l/",

"fields": {

"task_name": "test new record 1"

},

"use_field_slug": true

}

Dataform(Table) ID

You can find the dataform_id in the URL just before your dataform/table name.

Here, the URL is
https://orgzitapidemo.orgzit.com/app/#p/p569l5eo7u/task-tracker/jhtxltf37l/tasks

Here, task tracker is the dataform/table, and jhtxltf37l is the dataform_id.

Dataform

Dataform refers to the Table that you are integrating with.
Here, dataform contains the resource URL of the format /api/1/dataform/dataform_id/

Here, jhtxltf37lis the dataform_id.

Fields

Within fields, you can pass the field names and their respective values with which you want the record to be created.

To get the Field Names, move to the Table Manage Page and go to the Table Fields section. The Normalized Name will be the field name that you have to pass to create a record.

3. Making the Requests to Create the Record and Getting the Response

Once you set all values for the new record that you are about to create, send your API request.

You can now check your workspace dataform/table, you will find that your record has been created with the values passed by you!

Did this answer your question?