# prov.mandate.runs

prov.mandate.runs in the Node SDK: 5 methods. The mandate.runs methods.

## Methods

### [create](https://provenanceauth.com/docs/sdks/node/mandate-runs/create.md)

```ts
prov.mandate.runs.create(params?: { name?: string; rootGrantId?: string }): Promise<Run>
```

Start a run, optionally rooted at the person's mandate (its budget feeds the guard's budget pressure).

Calls `POST /v1/mandate/runs`.

### [list](https://provenanceauth.com/docs/sdks/node/mandate-runs/list.md)

```ts
prov.mandate.runs.list(params?: ListRunsParams): Promise<Run[]>
```

One page of your runs, newest first (20 by default; pass `cursor` from the previous page's `next_cursor`).

Calls `GET /v1/mandate/runs`.

### [get](https://provenanceauth.com/docs/sdks/node/mandate-runs/get.md)

```ts
prov.mandate.runs.get(runId: string): Promise<RunDetail & Record<string, unknown>>
```

The run with its team tree, the guard's counters, and its escalations and delegation proposals.

Calls `GET /v1/mandate/runs/{id}`.

### [halt](https://provenanceauth.com/docs/sdks/node/mandate-runs/halt.md)

```ts
prov.mandate.runs.halt(runId: string, params: { reason: string }): Promise<Run & Record<string, unknown>>
```

Halt the run: every member stops on its next verify, and its mandates are revoked.

Calls `POST /v1/mandate/runs/{id}/pause`.

### [end](https://provenanceauth.com/docs/sdks/node/mandate-runs/end.md)

```ts
prov.mandate.runs.end(runId: string): Promise<Run & Record<string, unknown>>
```

End the run: it takes no new members.

Calls `POST /v1/mandate/runs/{id}/end`.
