Quality Rule

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

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.

Download Quality Rule OpenAPI Document

Attribute

qualityrule_id
string
ID of the quality rule. Note: This value is a set of numeric characters.
qualityrule_number
string
Number of the quality rule. Auto-generated when auto-numbering is enabled. Must be unique in the organization. Required when auto-numbering is disabled. Maximum length: 50 characters.
qualityrule_name
string
Name of the quality rule. Must be unique in the organization. Maximum length: 200 characters.
status
string
Status of the quality rule. Allowed Values: Default: draft, active, inactive; Approval enabled: pending_approval, approved and rejected.
status_formatted
string
Display label of the status.
description
string
Description of the quality rule. Maximum length: 1000 characters.
has_quality_inspections
boolean
Indicates whether quality inspections have been created from this rule. When true, the rule cannot be edited or deleted.
rules_contexts
array
Transactions, items, categories, and locations the rule applies to.
Show Sub-Attributes arrow
rules_context_id
string
ID of the rule context. Note: This value is a set of numeric characters.
item_id
string
ID of the item the rule applies to. Note: This value is a set of numeric characters.
item_name
string
Name of the item.
item_sku
string
SKU of the item.
category_id
string
ID of the item category the rule applies to. Note: This value is a set of numeric characters.
category_name
string
Name of the item category.
location_id
string
ID of the location the rule applies to. Note: This value is a set of numeric characters.
transaction_type
string
Transaction on which inspections are created. Allowed Values: purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.
transaction_type_formatted
string
Display label of the transaction type.
operation_id
string
ID of the manufacturing operation the rule applies to. Required when transaction_type is mo_operation. Note: This value is a set of numeric characters.
operation_name
string
Name of the manufacturing operation.
associated_templates
array
Quality templates linked to the rule, with the expected values for their parameters.
Show Sub-Attributes arrow
rule_template_id
string
ID of the template association on the rule. Note: This value is a set of numeric characters.
sequence
integer
Order in which the template is applied when the rule has multiple templates. Allowed range: 1 to 300.
qualitytemplate_id
string
ID of the quality template. The template must be active. Note: This value is a set of numeric characters.
qualitytemplate_number
string
Number of the quality template.
qualitytemplate_name
string
Name of the quality template.
status
string
Status of the quality template. Allowed Values: active and inactive.
status_formatted
string
Display label of the template status.
description
string
Description of the quality template.
type
string
Inspection type of the template. Allowed Values: qualitative and quantitative.
type_formatted
string
Display label of the inspection type.
sampling_rate
integer
Number of units to inspect, interpreted according to sampling_type. Allowed range: 1 to 1000000. When sampling_type is percentage, the value must be between 1 and 100.
sampling_rate_formatted
string
Sampling rate with its unit, such as 10% or 10 Quantity.
sampling_type
string
How sampling_rate is interpreted. Allowed Values: percentage and absolute. Default value is percentage.
allowable_failures
integer
Number of failed samples allowed before the inspection fails, interpreted according to 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_formatted
string
Allowable failures with their unit, such as 2% or 2 Quantity.
allowable_failure_type
string
How allowable_failures is interpreted. Allowed Values: percentage and absolute. Default value is percentage.
qualityinspector_id
string
ID of the quality inspector assigned to inspections created from this rule. Note: This value is a set of numeric characters.
qualityinspector_name
string
Name of the quality inspector.
parameters
array
Template parameters with the expected values set on this rule.
Show Sub-Attributes arrow
parameter_id
string
ID of the template parameter the expected value belongs to. Note: This value is a set of numeric characters.
sequence
integer
Order in which the parameter appears during inspection.
parameter_name
string
Name of the characteristic being measured.
data_type
string
Type of value the inspector records. Allowed Values: number, decimal and boolean.
data_type_formatted
string
Display label of the data type.
unit
string
Unit of measurement for the parameter.
comparator
string
How the recorded value is checked against the expected value. Allowed Values: equals, not_equals, greater_than, less_than, greater_than_or_equals, less_than_or_equals, between and not_between.
comparator_formatted
string
Display label of the comparator.
parameterstandardvalue_id
string
ID of the expected value record. Note: This value is a set of numeric characters.
standard_value1
string
Expected value for the parameter. For between and not_between comparators, it is the lower limit. For a boolean parameter, use true or false. Maximum length: 45 characters.
standard_value2
string
Upper limit of the expected value. Applicable to between and not_between comparators. Maximum length: 45 characters.
value_list
string
List of expected values for list-based comparators. Maximum length: 10000 characters.
documents
array
Files attached to the quality template.
comments
array
Comments and audit trail of the quality rule.
Show Sub-Attributes arrow
description
string
Content of the comment.
submitter_id
string
ID of the user who submitted the rule for approval. Note: This value is a set of numeric characters.
submitted_by
string
Name of the user who submitted the rule for approval.
submitted_by_name
string
Name of the user who submitted the rule for approval.
submitted_by_email
string
Email address of the user who submitted the rule for approval.
submitted_date
string
Date the rule was submitted for approval. Date format: yyyy-MM-dd.
submitted_by_photo_url
string
URL of the photo of the user who submitted the rule.
approvers_list
array
Approvers of the quality rule in approval order.
Show Sub-Attributes arrow
order
integer
Position of the approver in the approval sequence.
approver_user_id
string
ID of the approver. Note: This value is a set of numeric characters.
approver_name
string
Name of the approver.
email
string
Email address of the approver.
has_approved
boolean
Indicates whether the approver has approved the rule.
approval_status
string
Approval status of the approver.
is_next_approver
boolean
Indicates whether this approver is next in the approval sequence.
is_final_approver
boolean
Indicates whether this approver is the final approver.
submitted_date
string
Date the rule was submitted for approval. Date format: yyyy-MM-dd.
approved_date
string
Date the approver approved the rule. Date format: yyyy-MM-dd.
photo_url
string
URL of the approver photo.
user_status
string
Status of the approver user account.
zuid
string
Zoho user ID of the approver.

Example

{ "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

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

qualityrule_name
string
(Required)
Name of the quality rule. Must be unique in the organization. Maximum length: 200 characters.
qualityrule_number
string
Number of the quality rule. Auto-generated when auto-numbering is enabled. Must be unique in the organization. Required when auto-numbering is disabled. Maximum length: 50 characters.
description
string
Description of the quality rule. Maximum length: 1000 characters.
rules_contexts
array
(Required)
Transactions, items, or categories the rule applies to. At least 1 and at most 100 contexts are allowed. Only one rule can be active for the same transaction type, item or category and location (and operation, for manufacturing operations). A context that duplicates an active rule is rejected. Mark the existing rule as inactive to create another rule for it.
Show Sub-Attributes arrow
transaction_type
string
(Required)
Transaction on which inspections are created. Allowed Values: purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.
item_id
string
ID of the item the rule applies to. Note: This value is a set of numeric characters.
category_id
string
ID of the item category the rule applies to. Note: This value is a set of numeric characters.
location_id
string
ID of the location the rule applies to. Note: This value is a set of numeric characters.
operation_id
string
ID of the manufacturing operation the rule applies to. Required when transaction_type is mo_operation. Note: This value is a set of numeric characters.
sampling_rate
integer
Number of units to inspect, interpreted according to sampling_type. Allowed range: 1 to 1000000. When sampling_type is percentage, the value must be between 1 and 100.
sampling_type
string
How sampling_rate is interpreted. Allowed Values: percentage and absolute. Default value is percentage.
allowable_failures
integer
Number of failed samples allowed before the inspection fails, interpreted according to 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_failure_type
string
How allowable_failures is interpreted. Allowed Values: percentage and absolute. Default value is percentage.
qualityinspector_id
string
ID of the quality inspector assigned to inspections created from this rule. Note: This value is a set of numeric characters.
next_action
string
Actions to perform once the rule is saved. Allowed Values: submit (submit for approval) and approve (approve directly). Omit it to save the rule without submitting it for approval.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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"}'

Body Parameters

Click to copy
{ "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" } ] } ] }

Response Example

{ "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

List all quality rules. Use filters, search, and sorting to narrow the results.
OAuth Scope : ERP.quality_control.READ

Query Parameters

organization_id
string
(Required)
ID of the organization.
filter_by
string
Filter rules by status group. Allowed Values: Status.All, Status.Draft, Status.Active, and Status.Inactive, Status.Pending, Status.Approved and Status.Rejected.
status
string
Filter rules by status. Allowed Values: draft, active and inactive.
search_text
string
Search by rule number, rule name, or description.
transaction_type
string
Filter rules by transaction type. Allowed Values: purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.
item_id
string
Filter rules by item. Note: This value is a set of numeric characters.
location_id
string
Filter rules by location. Note: This value is a set of numeric characters.
operation_id
string
Filter rules by operation. Note: This value is a set of numeric characters.
qualityrule_name
string
Filter rules by name using various matching operators. Available variants include qualityrule_name_startswith, qualityrule_name_contains, qualityrule_name_in and qualityrule_name_not_in.
qualityrule_number
string
Filter rules by number using various matching operators. Available variants include qualityrule_number_startswith, qualityrule_number_contains, qualityrule_number_in and qualityrule_number_not_in.
description_contains
string
Filter rules whose description contains the given text.
qualitytemplate_id
string
Filter rules by an associated quality template. Note: This value is a set of numeric characters.
qualitytemplate_number
string
Filter rules by the number of an associated quality template using various matching operators. Available variants include qualitytemplate_number_startswith, qualitytemplate_number_contains, qualitytemplate_number_in and qualitytemplate_number_not_in.
qualityinspector_id
string
Filter rules by quality inspector. Note: This value is a set of numeric characters.
sort_column
string
Column used to sort the results. Allowed Values: qualityrule_name, qualityrule_number, status, item_or_category, transaction_type, created_time and last_modified_time.
sort_order
string
Sort order for results. Allowed Values: A (ascending) and D (descending).
page
integer
Page number for pagination. Default value is 1.
per_page
integer
Number of records to be fetched per page. Default value is 200.

Request Example

Click to copy
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'

Response Example

{ "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

Update an existing quality rule. A rule that has quality inspections created from it cannot be edited.
OAuth Scope : ERP.quality_control.UPDATE

Arguments

qualityrule_name
string
(Required)
Name of the quality rule. Must be unique in the organization. Maximum length: 200 characters.
qualityrule_number
string
Number of the quality rule. Auto-generated when auto-numbering is enabled. Must be unique in the organization. Required when auto-numbering is disabled. Maximum length: 50 characters.
description
string
Description of the quality rule. Maximum length: 1000 characters.
rules_contexts
array
(Required)
Transactions, items, categories, and locations the rule applies to. At least 1 and at most 100 contexts are allowed. Include rules_context_id to modify an existing context. Contexts omitted from the array are removed.
Show Sub-Attributes arrow
rules_context_id
string
ID of the existing context to modify. Omit it to add a new context. Contexts omitted from the request are removed. Note: This value is a set of numeric characters.
transaction_type
string
(Required)
Transaction on which inspections are created. Allowed Values: purchase_receive, manufacturing_order, mo_operation, salesreturn_receive and transfer_receive.
item_id
string
ID of the item the rule applies to. Note: This value is a set of numeric characters.
category_id
string
ID of the item category the rule applies to. Note: This value is a set of numeric characters.
location_id
string
ID of the location the rule applies to. Note: This value is a set of numeric characters.
operation_id
string
ID of the manufacturing operation the rule applies to. Required when transaction_type is mo_operation. Note: This value is a set of numeric characters.
associated_templates
array
Quality templates linked to the rule, with the expected values for their parameters. Pass this in advanced mode only. Include associated_template_id to modify an existing association. Associations omitted from the array are removed. Maximum 100 templates.
Show Sub-Attributes arrow
associated_template_id
string
ID of the existing template association to modify. Omit it to link a new template. Associations omitted from the request are removed. Note: This value is a set of numeric characters.
qualitytemplate_id
string
(Required)
ID of the quality template. The template must be active. Note: This value is a set of numeric characters.
sequence
integer
(Required)
Order in which the template is applied when the rule has multiple templates. Allowed range: 1 to 300.
parameters
array
Expected values for the parameters of a quantitative template. Not allowed for qualitative templates. Maximum 100 entries.
Show Sub-Attributes arrow
parameterstandardvalue_id
string
ID of the existing expected value record to modify. Omit it to add a new record. Records omitted from the request are removed. Note: This value is a set of numeric characters.
parameter_id
string
ID of the template parameter the expected value belongs to. Note: This value is a set of numeric characters.
standard_value1
string
Expected value for the parameter. For between and not_between comparators, it is the lower limit. For a boolean parameter, use true or false. Maximum length: 45 characters.
standard_value2
string
Upper limit of the expected value. Applicable to between and not_between comparators. Maximum length: 45 characters.
value_list
string
List of expected values for list-based comparators. Maximum length: 10000 characters.
sampling_rate
integer
Number of units to inspect, interpreted according to sampling_type. Allowed range: 1 to 1000000. When sampling_type is percentage, the value must be between 1 and 100.
sampling_type
string
How sampling_rate is interpreted. Allowed Values: percentage and absolute. Default value is percentage.
allowable_failures
integer
Number of failed samples allowed before the inspection fails, interpreted according to 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_failure_type
string
How allowable_failures is interpreted. Allowed Values: percentage and absolute. Default value is percentage.
qualityinspector_id
string
ID of the quality inspector assigned to inspections created from this rule. Note: This value is a set of numeric characters.
next_action
string
Actions to perform once the rule is saved. Allowed Values: submit (submit for approval) and approve (approve directly). Omit it to save the rule without submitting it for approval.

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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"}'

Body Parameters

Click to copy
{ "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" } ] } ] }

Response Example

{ "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

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

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

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

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

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

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

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

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

Assign a quality inspector to a quality rule.
OAuth Scope : ERP.quality_control.UPDATE

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.
qualityinspector_id
string
ID of the quality inspector to assign. Note: This value is a set of numeric characters.

Request Example

Click to copy
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'

Response Example

{ "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

Submit a quality rule for approval.
OAuth Scope : ERP.quality_control.UPDATE

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

Approve a quality rule that is pending approval.
OAuth Scope : ERP.quality_control.UPDATE

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

Reject a quality rule that is pending approval.
OAuth Scope : ERP.quality_control.UPDATE

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.
reason
string
Reason for rejecting the quality rule. Maximum length: 500 characters.

Request Example

Click to copy
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'

Response Example

{ "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

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

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "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

Add a comment to a quality rule.
OAuth Scope : ERP.quality_control.CREATE

Arguments

description
string
(Required)
Content of the comment.

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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"}'

Body Parameters

Click to copy
{ "description": "Expected voltage range revised after supplier audit." }

Response Example

{ "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

Delete a comment from a quality rule.
OAuth Scope : ERP.quality_control.DELETE

Path Parameters

qualityrule_id
string
(Required)
ID of the quality rule. Note: This value is a set of numeric characters.
comment_id
string
(Required)
ID of the comment. Note: This value is a set of numeric characters.

Query Parameters

organization_id
string
(Required)
ID of the organization.

Request Example

Click to copy
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'

Response Example

{ "code": 0, "message": "Comment deleted" }