# prb rights-request command reference

Manage rights requests. This page documents **6 commands** under `prb rights-request`.

Flags and examples below come from the command definitions. A **Required** flag is explicitly marked required by Cobra; an unmarked flag can still be needed by runtime validation or a non-interactive workflow. Empty strings and empty lists are registered defaults, not sample values.

Every command also inherits the [global flags](/docs/developers/cli/commands#global-flags). Run `prb <command> --help` to check your installed version. Replace placeholder IDs and names in source examples before running them. Return to the [complete CLI command reference](/docs/developers/cli/commands) to browse another command.

## Commands

| Command                                                   | Description                              | Usage                            | Source                                                                                                          |
| --------------------------------------------------------- | ---------------------------------------- | -------------------------------- | --------------------------------------------------------------------------------------------------------------- |
| [`prb rights-request`](#prb-rights-request)               | Manage rights requests.                  | `prb rights-request <command>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/rights_request.go#L34) |
| [`prb rights-request create`](#prb-rights-request-create) | Create a new rights request.             | `prb rights-request create`      | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/create/create.go#L73)  |
| [`prb rights-request delete`](#prb-rights-request-delete) | Delete a rights request.                 | `prb rights-request delete <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/delete/delete.go#L43)  |
| [`prb rights-request list`](#prb-rights-request-list)     | List rights requests in an organization. | `prb rights-request list`        | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/list/list.go#L75)      |
| [`prb rights-request update`](#prb-rights-request-update) | Update a rights request.                 | `prb rights-request update <id>` | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/update/update.go#L67)  |
| [`prb rights-request view`](#prb-rights-request-view)     | View a rights request.                   | `prb rights-request view <id>`   | [View implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/view/view.go#L72)      |

## prb rights-request

Manage rights requests.

### Usage

```text
prb rights-request <command>
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/rights_request.go#L34).

## prb rights-request create

Create a new rights request.

### Usage

```text
prb rights-request create
```

### Flags

| Flag             | Type   | Default | Required | Description                                            |
| ---------------- | ------ | ------- | -------- | ------------------------------------------------------ |
| `--action-taken` | string | `""`    | —        | Action taken                                           |
| `--contact`      | string | `""`    | —        | Contact information                                    |
| `--data-subject` | string | `""`    | —        | Data subject name (required)                           |
| `--deadline`     | string | `""`    | —        | Deadline                                               |
| `--details`      | string | `""`    | —        | Request details                                        |
| `--org`          | string | `""`    | —        | Organization ID                                        |
| `--state`        | string | `""`    | —        | Request state: TODO, IN_PROGRESS, DONE (required)      |
| `--type`         | string | `""`    | —        | Request type: ACCESS, DELETION, PORTABILITY (required) |

### Examples

```bash
# Create a rights request interactively
prb rights-request create

# Create a rights request non-interactively
prb rights-request create --data-subject "John Doe" --type ACCESS --state TODO
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/create/create.go#L73).

## prb rights-request delete

Delete a rights request.

### Usage

```text
prb rights-request delete <id>
```

Requires 1 positional argument.

### Flags

| Flag          | Type    | Default | Required | Description              |
| ------------- | ------- | ------- | -------- | ------------------------ |
| `--yes`, `-y` | boolean | `false` | —        | Skip confirmation prompt |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/delete/delete.go#L43).

## prb rights-request list

List rights requests in an organization.

### Usage

```text
prb rights-request list
```

Accepts no positional arguments.

### Flags

| Flag                | Type    | Default  | Required | Description                                          |
| ------------------- | ------- | -------- | -------- | ---------------------------------------------------- |
| `--after`           | string  | `""`     | —        | Cursor from the previous page (the Next cursor line) |
| `--json`            | boolean | `false`  | —        | Output JSON (same as --output json)                  |
| `--limit`, `-L`     | integer | `30`     | —        | Maximum number of rights requests to list            |
| `--order-by`        | string  | `""`     | —        | Order by field (CREATED_AT, DEADLINE, STATE, TYPE)   |
| `--order-direction` | string  | `"DESC"` | —        | Sort direction (ASC, DESC)                           |
| `--org`             | string  | `""`     | —        | Organization ID                                      |
| `--output`, `-o`    | string  | `""`     | —        | Output format: json, table (default)                 |

### Examples

```bash
# List rights requests in the default organization
prb rights-request list

# List rights requests sorted by deadline
prb rights-request ls --order-by DEADLINE --output json
```

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/list/list.go#L75).

## prb rights-request update

Update a rights request.

### Usage

```text
prb rights-request update <id>
```

Requires 1 positional argument.

### Flags

| Flag             | Type   | Default | Required | Description                                 |
| ---------------- | ------ | ------- | -------- | ------------------------------------------- |
| `--action-taken` | string | `""`    | —        | Action taken                                |
| `--contact`      | string | `""`    | —        | Contact information                         |
| `--data-subject` | string | `""`    | —        | Data subject name                           |
| `--deadline`     | string | `""`    | —        | Deadline                                    |
| `--details`      | string | `""`    | —        | Request details                             |
| `--state`        | string | `""`    | —        | Request state: TODO, IN_PROGRESS, DONE      |
| `--type`         | string | `""`    | —        | Request type: ACCESS, DELETION, PORTABILITY |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/update/update.go#L67).

## prb rights-request view

View a rights request.

### Usage

```text
prb rights-request view <id>
```

Requires 1 positional argument.

### Flags

| Flag             | Type    | Default | Required | Description                          |
| ---------------- | ------- | ------- | -------- | ------------------------------------ |
| `--json`         | boolean | `false` | —        | Output JSON (same as --output json)  |
| `--output`, `-o` | string  | `""`    | —        | Output format: json, table (default) |

[View command implementation](https://github.com/getprobo/probo/blob/main/pkg/cmd/rights-request/view/view.go#L72).
