Quality Rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
A quality rule defines when an inspection is required. It applies a transaction type with an item or an item category. Only one rule can be active for the same item or category, transaction type and location. A rule can be duplicated or cloned, but only one of the rules can be active at a time. In Simple mode, the rule sets the sampling rate and allowable failures. In Advanced mode, it associates quality templates and sets the expected value for each template parameter. Only an active rule creates inspections, and a rule cannot be edited once inspections exist for it. When approval is enabled for quality rules, a rule must be submitted and approved before it takes effect.
Attribute
draft, active, inactive; Approval enabled: pending_approval, approved and rejected.true, the rule cannot be edited or deleted.purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.transaction_type is mo_operation. Note: This value is a set of numeric characters.active and inactive.qualitative and quantitative.sampling_type. Allowed range: 1 to 1000000. When sampling_type is percentage, the value must be between 1 and 100.10% or 10 Quantity.sampling_rate is interpreted. Allowed Values: percentage and absolute. Default value is percentage.allowable_failure_type. When allowable_failure_type is absolute, the value must be between 0 and 1000000. When allowable_failure_type is percentage, the value must be between 0 and 100. It cannot be greater than the number of units selected for inspection.2% or 2 Quantity.allowable_failures is interpreted. Allowed Values: percentage and absolute. Default value is percentage.number, decimal and boolean.equals, not_equals, greater_than, less_than, greater_than_or_equals, less_than_or_equals, between and not_between.between and not_between comparators, it is the lower limit. For a boolean parameter, use true or false. Maximum length: 45 characters.between and not_between comparators. Maximum length: 45 characters.yyyy-MM-dd.yyyy-MM-dd.yyyy-MM-dd.{
"qualityrule_id": "3863095000000074001",
"qualityrule_number": "QR-00001",
"qualityrule_name": "Battery Cell Incoming Check",
"status": "active",
"status_formatted": "Active",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"has_quality_inspections": false,
"rules_contexts": [
{
"rules_context_id": "3863095000000074011",
"item_id": "3863095000000046004",
"item_name": "Li-ion Battery Cell 18650",
"item_sku": "LIB-18650",
"category_id": "3863095000000046030",
"category_name": "",
"location_id": "3863095000000052001",
"transaction_type": "purchase_receive",
"transaction_type_formatted": "Purchase Receive",
"operation_id": "3863095000000039095",
"operation_name": ""
}
],
"associated_templates": [
{
"rule_template_id": "3863095000000074021",
"sequence": 1,
"qualitytemplate_id": "3863095000000070001",
"qualitytemplate_number": "QT-00001",
"qualitytemplate_name": "Li-ion Battery Cell Incoming Inspection",
"status": "active",
"status_formatted": "Active",
"description": "Electrical and visual checks on 18650 Li-ion cells received from suppliers.",
"type": "quantitative",
"type_formatted": "Quantitative",
"sampling_rate": 10,
"sampling_rate_formatted": "10%",
"sampling_type": "percentage",
"allowable_failures": 2,
"allowable_failures_formatted": "2 Quantity",
"allowable_failure_type": "absolute",
"qualityinspector_id": "3863095000000032003",
"qualityinspector_name": "John Smith",
"parameters": [
{
"parameter_id": "3863095000000070011",
"sequence": 1,
"parameter_name": "Open Circuit Voltage",
"data_type": "decimal",
"data_type_formatted": "Decimal",
"unit": "V",
"comparator": "between",
"comparator_formatted": "Between",
"parameterstandardvalue_id": "3863095000000074031",
"standard_value1": "3.6",
"standard_value2": "3.7",
"value_list": ""
}
],
"documents": [
{}
]
}
],
"comments": [
{
"comment_id": "3863095000000074101",
"description": "Quality rule created",
"commented_by_id": "3863095000000032003",
"commented_by": "John Smith",
"comment_type": "system",
"date": "2026-10-08",
"date_description": "few seconds ago",
"time": "10:13 AM",
"operation_type": "Added"
}
],
"submitter_id": "3863095000000032003",
"submitted_by": "John Smith",
"submitted_by_name": "John Smith",
"submitted_by_email": "John Smith.amirtharaj@zohocorp.com",
"submitted_date": "2026-10-08",
"submitted_by_photo_url": "",
"approvers_list": [
{
"order": 1,
"approver_user_id": "3863095000000032003",
"approver_name": "John Smith",
"email": "John Smith.amirtharaj@zohocorp.com",
"has_approved": false,
"approval_status": "pending",
"is_next_approver": true,
"is_final_approver": true,
"submitted_date": "2026-10-08",
"approved_date": "",
"photo_url": "",
"user_status": "active",
"zuid": ""
}
]
}
Create a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Create a quality rule. The request body depends on whether the organization uses Simple mode or Advanced mode. In simple mode, pass the sampling fields. In advanced mode, pass associated_templates. In either mode, apply the rule to items or, using the category-level request, to item categories. The fields of the two modes cannot be mixed.
OAuth Scope : ERP.quality_control.CREATE
Arguments
purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.transaction_type is mo_operation. Note: This value is a set of numeric characters.sampling_type. Allowed range: 1 to 1000000. When sampling_type is percentage, the value must be between 1 and 100.sampling_rate is interpreted. Allowed Values: percentage and absolute. Default value is percentage.allowable_failure_type. When allowable_failure_type is absolute, the value must be between 0 and 1000000. When allowable_failure_type is percentage, the value must be between 0 and 100. It cannot be greater than the number of units selected for inspection.allowable_failures is interpreted. Allowed Values: percentage and absolute. Default value is percentage.submit (submit for approval) and approve (approve directly). Omit it to save the rule without submitting it for approval.Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695")
.post(body)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/erp/v3/qualityrules?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request POST \
--url 'https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"qualityrule_name": "Battery Cell Incoming Check",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"rules_contexts": [
{
"transaction_type": "purchase_receive",
"item_id": "3863095000000046004",
"location_id": "3863095000000052001"
}
],
"sampling_rate": 10,
"sampling_type": "percentage",
"allowable_failures": 1,
"allowable_failure_type": "absolute",
"qualityinspector_id": "3863095000000032003"
}
{
"qualityrule_name": "Battery Cell Incoming Check",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"rules_contexts": [
{
"transaction_type": "purchase_receive",
"item_id": "3863095000000046004",
"location_id": "3863095000000052001"
}
],
"sampling_rate": 10,
"sampling_type": "percentage",
"allowable_failures": 1,
"allowable_failure_type": "absolute",
"qualityinspector_id": "3863095000000032003",
"next_action": "submit"
}
{
"qualityrule_name": "Battery Cell Incoming Check",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"rules_contexts": [
{
"transaction_type": "purchase_receive",
"item_id": "3863095000000046004",
"location_id": "3863095000000052001"
}
],
"associated_templates": [
{
"qualitytemplate_id": "3863095000000070001",
"sequence": 1,
"parameters": [
{
"parameter_id": "3863095000000070011",
"standard_value1": "3.6",
"standard_value2": "3.7"
},
{
"parameter_id": "3863095000000070012",
"standard_value1": "40"
}
]
}
]
}
{
"qualityrule_name": "Battery Cell Incoming Check",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"rules_contexts": [
{
"transaction_type": "purchase_receive",
"item_id": "3863095000000046004",
"location_id": "3863095000000052001"
}
],
"associated_templates": [
{
"qualitytemplate_id": "3863095000000070001",
"sequence": 1,
"parameters": [
{
"parameter_id": "3863095000000070011",
"standard_value1": "3.6",
"standard_value2": "3.7"
},
{
"parameter_id": "3863095000000070012",
"standard_value1": "40"
}
]
}
],
"next_action": "submit"
}
{
"qualityrule_name": "Battery Category Incoming Check",
"description": "Inspect all battery items when they are received from suppliers.",
"rules_contexts": [
{
"transaction_type": "purchase_receive",
"category_id": "3863095000000046030",
"location_id": "3863095000000052001"
}
],
"sampling_rate": 10,
"sampling_type": "percentage",
"allowable_failures": 1,
"allowable_failure_type": "absolute",
"qualityinspector_id": "3863095000000032003"
}
{
"qualityrule_name": "Battery Category Incoming Check",
"description": "Inspect all battery items when they are received from suppliers.",
"rules_contexts": [
{
"transaction_type": "purchase_receive",
"category_id": "3863095000000046030",
"location_id": "3863095000000052001"
}
],
"associated_templates": [
{
"qualitytemplate_id": "3863095000000070001",
"sequence": 1,
"parameters": [
{
"parameter_id": "3863095000000070011",
"standard_value1": "3.6",
"standard_value2": "3.7"
}
]
}
]
}
{
"code": 0,
"message": "Quality rule created",
"qualityrule": {
"qualityrule_id": "3863095000000074001",
"qualityrule_number": "QR-00001",
"qualityrule_name": "Battery Cell Incoming Check",
"status": "active",
"status_formatted": "Active",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"qualityinspector_id": "3863095000000032003",
"qualityinspector_name": "John Smith",
"rules_contexts": [
{
"rules_context_id": "3863095000000074011",
"item_id": "3863095000000046004",
"category_id": "3863095000000046030",
"location_id": "3863095000000052001",
"transaction_type": "purchase_receive",
"transaction_type_formatted": "Purchase Receive",
"operation_id": "3863095000000039095"
}
],
"associated_templates": [
{
"associated_template_id": "3863095000000074021",
"qualitytemplate_id": "3863095000000070001",
"sequence": 1,
"parameters": [
{
"parameterstandardvalue_id": "3863095000000074031",
"parameter_id": "3863095000000070011",
"standard_value1": "3.6",
"standard_value2": "3.7",
"value_list": ""
}
]
}
]
}
}
List quality rules
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
List all quality rules. Use filters, search, and sorting to narrow the results.
OAuth Scope : ERP.quality_control.READ
Query Parameters
Status.All, Status.Draft, Status.Active, and Status.Inactive, Status.Pending, Status.Approved and Status.Rejected.draft, active and inactive.purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.qualityrule_name_startswith, qualityrule_name_contains, qualityrule_name_in and qualityrule_name_not_in.qualityrule_number_startswith, qualityrule_number_contains, qualityrule_number_in and qualityrule_number_not_in.qualitytemplate_number_startswith, qualitytemplate_number_contains, qualitytemplate_number_in and qualitytemplate_number_not_in.qualityrule_name, qualityrule_number, status, item_or_category, transaction_type, created_time and last_modified_time.A (ascending) and D (descending).headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/erp/v3/qualityrules?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.in/erp/v3/qualityrules?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"qualityrules": [
{
"qualityrule_id": "3863095000000074001",
"qualityrule_number": "QR-00001",
"qualityrule_name": "Battery Cell Incoming Check",
"status": "active",
"status_formatted": "Active",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"item_id": "3863095000000046004",
"item_name": "Li-ion Battery Cell 18650",
"item_sku": "LIB-18650",
"item_unit": "pcs",
"category_id": "3863095000000046030",
"category_name": "",
"item_or_category": "Li-ion Battery Cell 18650",
"location_id": "3863095000000052001",
"location_name": "Chennai Warehouse",
"transaction_type": "purchase_receive",
"transaction_type_formatted": "Purchase Receive",
"operation_id": "3863095000000039095",
"operation_name": "",
"qualityinspector_id": "3863095000000032003",
"qualityinspector_name": "John Smith",
"template_count": 1,
"created_time": "2026-10-08T10:13:45+0530",
"last_modified_time": "2026-10-08T10:13:45+0530"
},
{...},
{...}
],
"page_context": {
"page": 1,
"per_page": 200,
"has_more_page": false,
"report_name": "Quality Rules",
"applied_filter": "Status.All",
"sort_column": "created_time",
"sort_order": "D"
}
}
Update a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Update an existing quality rule. A rule that has quality inspections created from it cannot be edited.
OAuth Scope : ERP.quality_control.UPDATE
Arguments
rules_context_id to modify an existing context. Contexts omitted from the array are removed.purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.transaction_type is mo_operation. Note: This value is a set of numeric characters.associated_template_id to modify an existing association. Associations omitted from the array are removed. Maximum 100 templates.between and not_between comparators, it is the lower limit. For a boolean parameter, use true or false. Maximum length: 45 characters.between and not_between comparators. Maximum length: 45 characters.sampling_type. Allowed range: 1 to 1000000. When sampling_type is percentage, the value must be between 1 and 100.sampling_rate is interpreted. Allowed Values: percentage and absolute. Default value is percentage.allowable_failure_type. When allowable_failure_type is absolute, the value must be between 0 and 1000000. When allowable_failure_type is percentage, the value must be between 0 and 100. It cannot be greater than the number of units selected for inspection.allowable_failures is interpreted. Allowed Values: percentage and absolute. Default value is percentage.submit (submit for approval) and approve (approve directly). Omit it to save the rule without submitting it for approval.Path Parameters
Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695"
type: PUT
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695")
.put(body)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"qualityrule_name": "Battery Cell Incoming Check",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"rules_contexts": [
{
"rules_context_id": "3863095000000074011",
"transaction_type": "purchase_receive",
"item_id": "3863095000000046004",
"location_id": "3863095000000052001"
}
],
"associated_templates": [
{
"associated_template_id": "3863095000000074021",
"qualitytemplate_id": "3863095000000070001",
"sequence": 1,
"parameters": [
{
"parameterstandardvalue_id": "3863095000000074031",
"parameter_id": "3863095000000070011",
"standard_value1": "3.6",
"standard_value2": "3.75"
}
]
}
]
}
{
"code": 0,
"message": "Quality rule edited",
"qualityrule": {
"qualityrule_id": "3863095000000074001",
"qualityrule_number": "QR-00001",
"qualityrule_name": "Battery Cell Incoming Check",
"status": "active",
"status_formatted": "Active",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"qualityinspector_id": "3863095000000032003",
"qualityinspector_name": "John Smith",
"rules_contexts": [
{
"rules_context_id": "3863095000000074011",
"item_id": "3863095000000046004",
"category_id": "3863095000000046030",
"location_id": "3863095000000052001",
"transaction_type": "purchase_receive",
"transaction_type_formatted": "Purchase Receive",
"operation_id": "3863095000000039095"
}
],
"associated_templates": [
{
"associated_template_id": "3863095000000074021",
"qualitytemplate_id": "3863095000000070001",
"sequence": 1,
"parameters": [
{
"parameterstandardvalue_id": "3863095000000074031",
"parameter_id": "3863095000000070011",
"standard_value1": "3.6",
"standard_value2": "3.7",
"value_list": ""
}
]
}
]
}
}
Get a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Get the details of a quality rule, including its contexts, associated templates with expected values, comments, and approval details.
OAuth Scope : ERP.quality_control.READ
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695"
type: GET
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695")
.get()
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'GET',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("GET", "/erp/v3/qualityrules/3863095000000074001?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "GET",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request GET \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "success",
"qualityrule": {
"qualityrule_id": "3863095000000074001",
"qualityrule_number": "QR-00001",
"qualityrule_name": "Battery Cell Incoming Check",
"status": "active",
"status_formatted": "Active",
"description": "Inspect Li-ion cells when they are received from suppliers.",
"has_quality_inspections": false,
"rules_contexts": [
{
"rules_context_id": "3863095000000074011",
"item_id": "3863095000000046004",
"item_name": "Li-ion Battery Cell 18650",
"item_sku": "LIB-18650",
"category_id": "3863095000000046030",
"category_name": "",
"location_id": "3863095000000052001",
"transaction_type": "purchase_receive",
"transaction_type_formatted": "Purchase Receive",
"operation_id": "3863095000000039095",
"operation_name": ""
}
],
"associated_templates": [
{
"rule_template_id": "3863095000000074021",
"sequence": 1,
"qualitytemplate_id": "3863095000000070001",
"qualitytemplate_number": "QT-00001",
"qualitytemplate_name": "Li-ion Battery Cell Incoming Inspection",
"status": "active",
"status_formatted": "Active",
"description": "Electrical and visual checks on 18650 Li-ion cells received from suppliers.",
"type": "quantitative",
"type_formatted": "Quantitative",
"sampling_rate": 10,
"sampling_rate_formatted": "10%",
"sampling_type": "percentage",
"allowable_failures": 2,
"allowable_failures_formatted": "2 Quantity",
"allowable_failure_type": "absolute",
"qualityinspector_id": "3863095000000032003",
"qualityinspector_name": "John Smith",
"parameters": [
{
"parameter_id": "3863095000000070011",
"sequence": 1,
"parameter_name": "Open Circuit Voltage",
"data_type": "decimal",
"data_type_formatted": "Decimal",
"unit": "V",
"comparator": "between",
"comparator_formatted": "Between",
"parameterstandardvalue_id": "3863095000000074031",
"standard_value1": "3.6",
"standard_value2": "3.7",
"value_list": ""
}
],
"documents": [
{...}
]
}
],
"comments": [
{
"comment_id": "3863095000000074101",
"description": "Quality rule created",
"commented_by_id": "3863095000000032003",
"commented_by": "John Smith",
"comment_type": "system",
"date": "2026-10-08",
"date_description": "few seconds ago",
"time": "10:13 AM",
"operation_type": "Added"
}
],
"submitter_id": "3863095000000032003",
"submitted_by": "John Smith",
"submitted_by_name": "John Smith",
"submitted_by_email": "John Smith.amirtharaj@zohocorp.com",
"submitted_date": "2026-10-08",
"submitted_by_photo_url": "",
"approvers_list": [
{
"order": 1,
"approver_user_id": "3863095000000032003",
"approver_name": "John Smith",
"email": "John Smith.amirtharaj@zohocorp.com",
"has_approved": false,
"approval_status": "pending",
"is_next_approver": true,
"is_final_approver": true,
"submitted_date": "2026-10-08",
"approved_date": "",
"photo_url": "",
"user_status": "active",
"zuid": ""
}
]
}
}
Delete a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Delete an existing quality rule. A rule that has quality inspections created from it cannot be deleted.
OAuth Scope : ERP.quality_control.DELETE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/erp/v3/qualityrules/3863095000000074001?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Quality rule deleted"
}
Mark a quality rule as active
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Mark an inactive quality rule as active. Only an approved quality rule can be marked as active or inactive.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/active?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/active?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/active?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/status/active?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/status/active?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/active?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Quality rule is marked Active"
}
Mark a quality rule as inactive
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Mark an active quality rule as inactive to avoid creating quality inspections. Only an approved quality rule can be marked as active or inactive.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/inactive?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/inactive?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/inactive?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/status/inactive?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/status/inactive?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/status/inactive?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Quality rule is marked Inactive"
}
Assign an inspector
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Assign a quality inspector to a quality rule.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/assigninspector?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/assigninspector?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/assigninspector?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/assigninspector?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/assigninspector?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/assigninspector?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Tester updated successfully.",
"qualityrule": {
"qualityinspector_id": "3863095000000032003",
"qualityinspector_name": "John Smith"
}
}
Submit a quality rule for approval
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Submit a quality rule for approval.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/submit?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/submit?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/submit?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/submit?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/submit?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/submit?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The quality rule has been submitted for approval."
}
Approve a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Approve a quality rule that is pending approval.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/approve?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/approve?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The quality rule has been approved by the approver."
}
Reject a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Reject a quality rule that is pending approval.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/reject?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/reject?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/reject?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/reject?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/reject?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/reject?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The quality rule has been rejected."
}
Final approve a quality rule
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Mark a submitted quality rule as final approved, skipping the remaining approvers. Only an admin can perform this action.
OAuth Scope : ERP.quality_control.UPDATE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve/final?organization_id=10234695"
type: PUT
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve/final?organization_id=10234695")
.put(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'PUT',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve/final?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("PUT", "/erp/v3/qualityrules/3863095000000074001/approve/final?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "PUT",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/approve/final?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request PUT \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/approve/final?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "The quality rule has been final-approved."
}
Add a comment
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Add a comment to a quality rule.
OAuth Scope : ERP.quality_control.CREATE
Arguments
Path Parameters
Query Parameters
parameters_data='{"field1":"value1","field2":"value2"}';
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments?organization_id=10234695"
type: POST
headers: headers_data
content-type: application/json
parameters: parameters_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"field1\":\"value1\",\"field2\":\"value2\"}");
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments?organization_id=10234695")
.post(body)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.addHeader("content-type", "application/json")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'POST',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f',
'content-type': 'application/json'
},
body: '{"field1":"value1","field2":"value2"}'
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
payload = "{\"field1\":\"value1\",\"field2\":\"value2\"}"
headers = {
'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
'content-type': "application/json"
}
conn.request("POST", "/erp/v3/qualityrules/3863095000000074001/comments?organization_id=10234695", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "POST",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/comments?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f",
"content-type": "application/json"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.write(JSON.stringify({field1: 'value1', field2: 'value2'}));
req.end();
curl --request POST \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f' \
--header 'content-type: application/json' \
--data '{"field1":"value1","field2":"value2"}'
{
"code": 0,
"message": "Comment added",
"comment": {
"comment_id": "3863095000000074101",
"description": "Quality rule created",
"commented_by_id": "3863095000000032003",
"commented_by": "John Smith",
"comment_type": "system",
"date": "2026-10-08",
"date_description": "few seconds ago",
"time": "10:13 AM",
"operation_type": "Added"
}
}
Delete a comment
AI Tools
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Open in ChatGPT
Open in ChatGPT to ask questions about this page
Open in Claude
Open in Claude to ask questions about this page
Copy as Markdown
Copy this page as markdown to use with AI assistants
View as Markdown
Open this page as markdown in a new tab
Delete a comment from a quality rule.
OAuth Scope : ERP.quality_control.DELETE
Path Parameters
Query Parameters
headers_data = Map();
headers_data.put("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f");
response = invokeUrl
[
url: "https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments/3863095000000074101?organization_id=10234695"
type: DELETE
headers: headers_data
connection: <connection_name>
];
info response;
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments/3863095000000074101?organization_id=10234695")
.delete(null)
.addHeader("Authorization", "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f")
.build();
Response response = client.newCall(request).execute();
const options = {
method: 'DELETE',
headers: {
Authorization: 'Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
}
};
fetch('https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments/3863095000000074101?organization_id=10234695', options)
.then(response => response.json())
.then(response => console.log(response))
.catch(err => console.error(err));
import http.client
conn = http.client.HTTPSConnection("www.zohoapis.in")
headers = { 'Authorization': "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f" }
conn.request("DELETE", "/erp/v3/qualityrules/3863095000000074001/comments/3863095000000074101?organization_id=10234695", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
const http = require("https");
const options = {
"method": "DELETE",
"hostname": "www.zohoapis.in",
"port": null,
"path": "/erp/v3/qualityrules/3863095000000074001/comments/3863095000000074101?organization_id=10234695",
"headers": {
"Authorization": "Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f"
}
};
const req = http.request(options, function (res) {
const chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function () {
const body = Buffer.concat(chunks);
console.log(body.toString());
});
});
req.end();
curl --request DELETE \
--url 'https://www.zohoapis.in/erp/v3/qualityrules/3863095000000074001/comments/3863095000000074101?organization_id=10234695' \
--header 'Authorization: Zoho-oauthtoken 1000.41d9xxxxxxxxxxxxxxxxxxxxxxxxc2d1.8fccxxxxxxxxxxxxxxxxxxxxxxxx125f'
{
"code": 0,
"message": "Comment deleted"
}
{ "description": "Expected voltage range revised after supplier audit." }