Delete an existing organization report
Before You Begin
🔗 Use the GraphQL Playground to execute the mutations in this guide.
➡️ New to GraphQL? Learn how to navigate the Playground with our Playground Basics Guide.
Prerequisites
- Authentication: Use a Service Account token (Personal Access Tokens are deprecated).
- Permissions: Ensure your token has the necessary permissions to delete the specific report.
- Report ID: Identify the Organization Report you want to delete.
Step 1: Find The Report ID
-
Via Pipefy UI:
- Open the Organization Report in your browser.
- The URL will include the Report ID:
https://app.pipefy.com/organizations/123/reports/987654321
. - Report ID =
987654321
(the number after/reports/
).
-
Via GraphQL Query:
- Use the
organizationReports
query to list all reports and find the specific report ID you need. - How to get organization reports.
- Use the
Step 2: Delete Organization Report
Execute the deleteOrganizationReport
mutation:
mutation {
deleteOrganizationReport(input: { id: 456789123 }) {
success
}
}
Response Example
{
"data": {
"deleteOrganizationReport": {
"success": true
}
}
}
Arguments Explained
Required Arguments
id
: ID - The report ID to delete
Verification
After deletion, you can verify the report no longer exists by querying it:
{
organizationReport(id: 456789123) {
id
name
}
}
Expected Response (Report Deleted)
{
"data": {
"organizationReport": null
}
}