API Guide / API Reference / Record API / Edit Records
Edit Records

Use this API to update the records of the specific module. Set the record ID as parameter and use the PUT method to update the records.

Only the fields submitted in the request body will be updated. On the other hand, the fields that are not submitted will not be updated.

If this request is successful, the server returns an empty response with HTTP status code 200.


URL

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


HTTP Method

PUT


Request Body

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

{

"Customer Status": "Prospect",

"Customer Type": "Business",

"Description": null

}


Request Parameters

Parameter

Required

Description

module name

Yes

Module API name (Acquired from Module API call)

id

Yes

Record id (Read only field)

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?id=4263f106-d63f-4ec2-a835-a355ee1d3c8d&token=5c33446ac1c049049f9232cf296bdf10


Example Response

The response body is empty. HTTP status code 200 is returned if success.

Last modified on Jan 23, 2018