> For the complete documentation index, see [llms.txt](https://docs.docontrol.io/docontrol-user-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docontrol.io/docontrol-user-guide/workflows/define-workflow-settings/action-settings/utilities/docontrol-api-action/api-for-on-demand-remediation/add-new-mutation.md).

# Add new mutation

Using the DoControl API, you can remediate exposure of sensitive files in your Google Drive inventory with automated remediation actions.

To set up on-demand remediation, you need to add a new mutation in DoControl’s API step.

1. In your DoControl workflow, go to the **DoControl API step**.

2. Click **API Explorer**.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fy22LTgjkeBwHSlFN2ERD%2FDoControl%20API%20new.png?alt=media&amp;token=7b63cde1-e680-4f06-a0b2-fb6f1944a9df" alt=""><figcaption></figcaption></figure>

3. In the bottom left, next to **Add new**, select **Mutation**.&#x20;

4. For the mutation, select `startGoogleRemediationAssessment`.\ <br>

   <div align="left"><figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2Fff6RodfvcRq4wu4KgBwX%2Funknown.png?alt=media&amp;token=6854ed90-6fb9-4f0c-b2bc-6afaccb61408" alt="" width="506"><figcaption></figcaption></figure></div>

5. Insert `filterString` in the left sidebar. It will appear on the right side escaped with backslashes.<br>

   <figure><img src="https://3236294211-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MesrnyDMZGYg1V-tOBo%2Fuploads%2FIcektj2UnkwePSMOrOqI%2FExplorer%20filter%20string.png?alt=media&amp;token=022107e0-4125-444f-a8d3-dde8b7e533b6" alt=""><figcaption></figcaption></figure>

6. Continue to the next step: [Set up filters for API remediation.](/docontrol-user-guide/workflows/define-workflow-settings/action-settings/utilities/docontrol-api-action/api-for-on-demand-remediation/set-up-filters-for-api-remediation.md)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docontrol.io/docontrol-user-guide/workflows/define-workflow-settings/action-settings/utilities/docontrol-api-action/api-for-on-demand-remediation/add-new-mutation.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
