# createAttachment

> Mutation in domain **Assets**

- HTML: [createAttachment.html](createAttachment.html)
- Raw SDL: [createAttachment.sdl](createAttachment.sdl)
- Covered by: [llms.txt](../llms.txt)

Create a new `Attachment`. Attachments require a valid parent ID string. This mutation currently only supports attachments for parents of `Asset` type. Requires `basic:write` scope to be accessible and `Asset` permission level `EDIT`.

## Returns

`CreateAttachment`

## Arguments

- `input`: `CreateAttachmentInput!` — `CreateAttachment` input argument.

## Example

```graphql
mutation CreateAttachment {
  createAttachment(
    input: {
      parentId: "…"
      fileId: "…"
      name: "…"
    }
  ) {
    __typename
    job {
      attachmentId
    }
  }
}
```

Raw: [`createAttachment.example.sdl`](createAttachment.example.sdl)
