# resolveProjectDependencies

```graphql
mutation ResolveProjectDependencies($input: ResolveProjectDependenciesInput!) {
  resolveProjectDependencies(input: $input) {
    pins
    persisted
    skipped
  }
}
```

Resolve dependency pins. Requires project.files.write.

## Arguments

| Name                         | Type                             | Required | Description                                                                                                                                                                                                                                                                          |
| ---------------------------- | -------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `input`                      | ResolveProjectDependenciesInput! | Yes      |                                                                                                                                                                                                                                                                                      |
| `input.projectReference`     | String!                          | Yes      | Project UUID or slug.                                                                                                                                                                                                                                                                |
| `input.branch`               | String                           |          | Branch name or UUID, 1–255 characters without surrounding whitespace. Omit for main.                                                                                                                                                                                                 |
| `input.specifiers`           | \[String!]!                      | Yes      | 1–100 npm specifiers to pin to exact versions in package.json after adding imports or packages. Each is 1–200 characters: bare package, exact version or semver range.                                                                                                               |
| `input.expectedDeclarations` | JSONObject                       |          | Observed package declarations: a map of npm package name to a string of up to 200 characters, or null when absent; at most 100 entries. Keys must equal the requested package names. Changed declarations are skipped. Declared as JSONObject so existing documents keep validating. |

## Variables

```json
{
  "input": {
    "projectReference": "string",
    "specifiers": [
      "string"
    ]
  }
}
```

## Responses

| Status | Description                                                                |
| ------ | -------------------------------------------------------------------------- |
| 200    | The ResolveProjectDependenciesPayload! in data.resolveProjectDependencies. |

## 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 ResolveProjectDependencies($input: ResolveProjectDependenciesInput!) {\n  resolveProjectDependencies(input: $input) {\n    pins\n    persisted\n    skipped\n  }\n}",
  "variables": {
    "input": {
      "projectReference": "string",
      "specifiers": [
        "string"
      ]
    }
  }
}'
```

## Example response

```json
{
  "data": {
    "resolveProjectDependencies": {
      "pins": {},
      "persisted": false,
      "skipped": {}
    }
  }
}
```
