# createUploadFolder

```graphql
mutation CreateUploadFolder($input: CreateUploadFolderInput!) {
  createUploadFolder(input: $input) {
    path
    visibility
    permission
    createdAt
  }
}
```

Create a folder in project uploads with a visibility. Requires project.uploads.write.

## Arguments

| Name                     | Type                     | Required | Description                                                                                                                                                 |
| ------------------------ | ------------------------ | -------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `input`                  | CreateUploadFolderInput! | Yes      |                                                                                                                                                             |
| `input.projectReference` | String                   |          | Project UUID, slug or configured domain. Omission does not select the context project.                                                                      |
| `input.folderPath`       | String                   |          | Folder path; a trailing slash is appended when absent.                                                                                                      |
| `input.path`             | String                   |          | Another spelling of folderPath. Send one of the two.                                                                                                        |
| `input.visibility`       | UploadFolderVisibility   |          | Folder visibility (default project); changes from inherited visibility require path admin access. Default `project`. One of `project`, `public`, `private`. |

## Variables

```json
{
  "input": {}
}
```

## Responses

| Status | Description                                          |
| ------ | ---------------------------------------------------- |
| 200    | The UploadFolderSetting! in data.createUploadFolder. |

## Call it

```bash
curl -X POST "https://api.veryfront.com/graphql" \
  -H "Authorization: Bearer $VERYFRONT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "query": "mutation CreateUploadFolder($input: CreateUploadFolderInput!) {\n  createUploadFolder(input: $input) {\n    path\n    visibility\n    permission\n    createdAt\n  }\n}",
  "variables": {
    "input": {}
  }
}'
```

## Example response

```json
{
  "data": {
    "createUploadFolder": {
      "path": "string",
      "visibility": "project",
      "permission": "read",
      "createdAt": "string"
    }
  }
}
```
