# createLicense

> Mutation in domain **Licenses & copyright**

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

Create a new `Project` `License`. Requires `basic:write` scope to be accessible and `Project` permission level `EDIT`.

## Returns

`CreateLicense`

## Arguments

- `input`: `CreateLicenseInput!` — `CreateLicense` input argument.

## Example

```graphql
mutation CreateLicense {
  createLicense(
    input: {
      projectId: "…"
      title: "…"
      license: "…"
    }
  ) {
    __typename
    license {
      title
      id
      addByDefault
      license
      requireConsensus
    }
  }
}
```

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