Update Field Mapping
Endpoint Name: URL/klearstack/updatemappingdataapi
Request type : POST
Authorization: Bearer token as header
Endpoint Details: The updatemappingdataapi endpoint will be used to update enable / disable fields or update the settings of fields.
Method
URL
POST
URL/klearstack/updatemappingdataapi
Request Body
Params
Values
Required
Description
company_name
string
Yes
Name of the company for which the user is logging in
username
string
Yes
User Name
collection_name
string
Yes
Document Type
data
Yes
[{
"documentTypeDetails": {
"invoices": {
"fields": {
"doc_number_value": {
"label": "Invoice Number",
"required": true,
"visibility": true
}
}
}
}
}]
Shell (cURL)
Request Body
curl --location "URL/klearstack/updatemappingdataapi" \
--header "Authorization: Bearer your_token_here" \
--form "company_name=Replace_Company_Name_Here" \
--form "username=Replace_Username_Here" \
--form "collection_name=Replace_Collection_Name_Here" \
--form 'data=[{
"documentTypeDetails": {
"invoices": {
"fields": {
"doc_number_value": {
"label": "Invoice Number",
"required": true,
"visibility": true
}
}
}
}
}]'Python
Request Body
Java (OkHttp)
Request Body
Node.js (Axios)
Request Body
JavaScript (XHR)
Request Body
API Response
Status code
Example Response
200
Request Submitted Successfully
Last updated