# Mark a ticket as a reference

`PUT /v1/tickets/{ticket_id}/reference`

Requires role member or higher.

Marks the ticket for the whole organization, to find it again when a similar problem appears. Idempotent: marking it again keeps the first time. The ticket itself does not change, and it is still deleted when the plan's retention ends.

## Authentication

A session token: `Authorization: Bearer <session token>`, or the session cookie in the browser. Requires role `member` or higher.

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ticket_id` | path | string | yes |  |

## Responses

### 204

No content

### 401

unauthorized: no valid session, or the email is not verified.

Problem type: [unauthorized](https://docs.dlogify.com/errors/unauthorized.md).

### 403

csrf-origin-rejected: a cookie-authenticated change from an origin outside the web app.

Problem type: [csrf-origin-rejected](https://docs.dlogify.com/errors/csrf-origin-rejected.md).

### 404

not-found: the resource does not exist, or the caller is not a member of its organization.

Problem type: [not-found](https://docs.dlogify.com/errors/not-found.md).

### 429

rate-limited: per-user management request limit.

Problem type: [rate-limited](https://docs.dlogify.com/errors/rate-limited.md).

## Example

```bash
curl -X PUT "https://api.dlogify.com/v1/tickets/{ticket_id}/reference" \
  -H "Authorization: Bearer $DLOGIFY_SESSION"
```

Source: https://docs.dlogify.com/api/tickets/markTicketReference
