Update Record of a Datasource
Endpoint Name: update_datasource_row
Request type : POST
Authorization: Bearer token as header
Endpoint Details: The update_datasource_row endpoint will be used to update a record in datasource.
Method
URL
POST
URL/access/klearstack/update_datasource_row
Request Body
Params
Values
Required
Description
company_name
string
Yes
Name of the company for which the user is logging in
datasource_name
string
Yes
Name of the datasource
id
string
Yes
ID of record to be updated
data
string (JSON)
Yes
A valid JSON string that contains info that needs to be updated
Example : {"USER_FIRST_NAE": "Marti",
"USER_LAST_NAME": "URIB"}
Shell (cURL)
Request Body
curl --location "URL/access/klearstack/update_datasource_row" \
--header "Authorization: Bearer your_token_here" \
--form "company_name=Replace_Company_Name_Here" \
--form "datasource_name=Replace_Datasource_Name_Here" \
--form "id=Replace_Record_ID_Here" \
--form 'data={
"USER_FIRST_NAME": "Marti",
"USER_LAST_NAME": "URIB"
}'Python
Request Body
Java (OkHttp)
Request Body
Node.js (Axios)
Request Body
JavaScript (XHR)
Request Body
API Response
Status code
Example Response
200
{
"success": "Document updated successfully.",
“release_version”:”7.8.9”
}
400
{
"error": "Invalid key: USER_FIRST_NAE"
}
Last updated