deleteCopilotSupplierRule
Requires permission catalog:copilot:chat.
Deletes the saved import rules of one supplier and returns whether a rule was removed. Limited to 20 requests a minute. Needs the catalog copilot feature on the plan and permission to chat with the copilot.
Errors: a failed call returns a GraphQL errors entry, not a field on the result, and data may be null or partial. Read the entry's extensions.code and message; every shape and code is in the Error reference.
Example:
- GraphQL
- cURL
mutation DeleteCopilotSupplierRule($supplierName: String!) {
deleteCopilotSupplierRule(supplierName: $supplierName)
}
curl -X POST "https://<api-host>/graphql" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $ACCESS_TOKEN" \
--data @- <<'EOF'
{
"query": "mutation DeleteCopilotSupplierRule($supplierName: String!) {\n deleteCopilotSupplierRule(supplierName: $supplierName)\n}",
"variables": {
"supplierName": "string"
}
}
EOF
Variables:
{
"supplierName": "string"
}
Response:
{
"data": {
"deleteCopilotSupplierRule": true
}
}
deleteCopilotSupplierRule(
supplierName: String!
): Boolean!
Arguments
deleteCopilotSupplierRule.supplierName ● String! non-null scalar
The supplier whose rules to delete. Matched without regard to case or punctuation.
Type
Boolean scalar
The Boolean scalar type represents true or false.