> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Update Project

> Change an Ahrefs project's access level (shared or private) or move it into or out of a folder

Change an Ahrefs project's access level (shared or private) or move it into or out of a folder. Free: does not consume API units.

|                       |                         |
| --------------------- | ----------------------- |
| **App**               | Ahrefs                  |
| **Operation ID**      | `ahrefs_update_project` |
| **Type**              | Action                  |
| **Connection**        | `ahrefs` (required)     |
| **Credits per run**   | Free                    |
| **Agent / MCP tool**  | Yes                     |
| **Requires approval** | Yes (write operation)   |

## Inputs

| Field                | Type                       | Required | Default | Description                                                                                            |
| -------------------- | -------------------------- | -------- | ------- | ------------------------------------------------------------------------------------------------------ |
| `project_id`         | string or SelectItem       | Yes      | -       | The project to update (numeric ID from the Ahrefs project URL). Use ahrefs\_list\_projects to find it. |
| `access`             | string or SelectableOption | No       | -       | New access setting: 'shared' (whole workspace) or 'private' (owner only). Leave empty to keep it.      |
| `folder_id`          | integer                    | No       | -       | Move the project into this folder (the id in the Ahrefs folder URL).                                   |
| `remove_from_folder` | boolean                    | No       | `False` | Move the project out of its folder to the top level.                                                   |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

### SelectableOption

| Field   | Type   | Required | Default | Description |
| ------- | ------ | -------- | ------- | ----------- |
| `value` | string | Yes      | -       |             |
| `label` | string | Yes      | -       |             |

## Output

**Type**: `List[Dict]`

Returns the updated project: project\_id, project\_name, url, mode, protocol, access, folder.

**Fields**: `project_id`, `project_name`, `url`, `mode`, `protocol`, `access`, `folder`

**Example**:

```json theme={"dark"}
[
  {
    "project_id": "8123456",
    "project_name": "Client A",
    "url": "clienta.com/",
    "mode": "subdomains",
    "protocol": "both",
    "access": "private",
    "folder": null
  }
]
```
