Edit in GitHubLog an issue
B2B feature. Learn more

deletePurchaseOrderApprovalRule mutation

The deletePurchaseOrderApprovalRule mutation deletes one or more purchase order approval rules.

You can use the customer query to retrieve the uid value of the approval rule.

If the mutation is successful, it returns null. Otherwise, the response contains details about any errors encountered.

Syntax

Copied to your clipboard
mutation {
deletePurchaseOrderApprovalRule(
input: DeletePurchaseOrderApprovalRuleInput!
) {
DeletePurchaseOrderApprovalRuleOutput
}
}

Reference

The deletePurchaseOrderApprovalRule reference provides detailed information about the types and fields defined in this mutation.

Headers

A valid customer authentication token is required.

Example usage

The following example deletes the purchase order approval rule.

Request:

Copied to your clipboard
mutation {
deletePurchaseOrderApprovalRule(
input: {
approval_rule_uids: ["Mg=="]
}
) {
errors {
message
type
}
}
}

Response:

Copied to your clipboard
{
"data": {
"deletePurchaseOrderApprovalRule": {
"errors": []
}
}
}
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2024 Adobe. All rights reserved.