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

# updateFolder

> Changes a folder's name and groups of source properties. In a media source, a new name is written onto the folder's entries too; for a large folder a task does it, and `queuedTaskId` returns its id.



**mutation** `updateFolder(input: UpdateFolderInput!): UpdateFolderPayload!`

## Arguments

**`input`**: `UpdateFolderInput!` (required)

## Returns

`UpdateFolderPayload!`

**`errors`**: `[UpdateFolderError!]`

---

**`folder`**: `Folder`

---

**`queuedTaskId`**: `ID`

## Examples

```graphql Mutation
mutation UpdateFolder($input: UpdateFolderInput!) {
  updateFolder(input: $input) {
    errors {
      __typename
      ... on GraphQlError {
        code
        details {
          __typename
        }
        message
      }
    }
    folder {
      activeTask {
        artifacts {
          __typename
        }
        awaitingConfirmation
        configuration {
          __typename
          ... on CardsImportConfiguration {
            __typename
          }
        }
        createdAt
        createdBy
        details {
          __typename
          ... on CardsImportDetails {
            __typename
          }
        }
      }
      children {
        edges {
          __typename
        }
        nodes {
          __typename
        }
        pageInfo {
          __typename
        }
        totalCount
      }
      createdAt
      createdByUser
      dataSource {
        cardDefinitions {
          __typename
        }
        createdAt
        dataProviders {
          __typename
        }
        deletedAt
        description
        entries {
          __typename
        }
      }
      dataSourceId
    }
    queuedTaskId
  }
}
```

```json Variables
{
  "input": {
    "id": "id"
  }
}
```

```json Response
{
  "data": {
    "updateFolder": {
      "errors": [
        {
          "__typename": "GraphQlError",
          "code": "string",
          "details": [
            {
              "__typename": "KeyValuePairOfStringAndString"
            }
          ],
          "message": "string"
        }
      ],
      "folder": {
        "activeTask": {
          "artifacts": [
            {
              "__typename": "QueuedTaskArtifact"
            }
          ],
          "awaitingConfirmation": true,
          "configuration": {
            "__typename": "CardsImportConfiguration"
          },
          "createdAt": "value",
          "createdBy": "value",
          "details": {
            "__typename": "CardsImportDetails"
          }
        },
        "children": {
          "edges": [
            {
              "__typename": "ChildrenEdge"
            }
          ],
          "nodes": [
            {
              "__typename": "Folder"
            }
          ],
          "pageInfo": {
            "__typename": "PageInfo"
          },
          "totalCount": 1
        },
        "createdAt": "value",
        "createdByUser": "value",
        "dataSource": {
          "cardDefinitions": {
            "__typename": "CardDefinitionsConnection"
          },
          "createdAt": "value",
          "dataProviders": {
            "__typename": "DataProvidersConnection"
          },
          "deletedAt": "value",
          "description": "string",
          "entries": {
            "__typename": "SourceEntriesConnection"
          }
        },
        "dataSourceId": "id"
      },
      "queuedTaskId": "id"
    }
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.