API Guide / API Reference / Record API / Add Records
Add Records

Use this API to create new record. The request can be made to add one record at a time only. If you want to add multiple records, your code will need to iterate over a collection of data and make a POST request each time.

The request body must include the required fields. You will receive the error message if required fields are missing.

Any field that is not included will be set to its default value. If the field does not have a default value, it will be left blank.

If this request is successful, the server returns a response body that contains the record ID of the new record.


URL

https://Witly.co/api/v2/{module name}?token={0}[&format={1}]


HTTP Method

POST


Request Body

The key and value should be in string JSON/XML format. And the key must match the field name in Witly.

{

"Customer Name""BBB Warehouse",

"Customer Status""Prospect"

}


Request Parameters

Parameter

Required

Description

module name

Yes

Module API name (Acquired from Module API call)

token

Yes

Access token

format

Optional

Expected return format. The default is JSON. Values are JSON and XML. This parameter is optional.


Example Request

https://Witly.co/api/v2/customer?token=5c33446ac1c049049f9232cf296bdf10


Example Response

{

"id": "4263f106-d63f-4ec2-a835-a355ee1d3c8d"

}


Last modified on Jan 23, 2018