# Upsert Player Policy

> Upsert a player based policy.

Upsert a player based policy.

## Command

Authentication Required: `Yes`

```text
ugs access upsert-player-policy <player-id> <file-path> [options]
```

## Argument

`<player-id>` The player ID

`<file-path>` The path of the `JSON` file containing [policy schema](../resource-definition)

## Options

| Option      | Alias                  | Description                         |
| ----------- | ---------------------- | ----------------------------------- |
| project-id  | -p, --project-id       | The Unity cloud project ID.         |
| environment | -e, --environment-name | The services environment name.      |
| help        | -?, -h, --help         | Display help and usage information. |
| quiet       | -q, --quiet            | Reduce logging to a minimum.        |
| json        | -j, --json             | Use JSON as the output format.      |
