# Bookmark topic

`PUT /t/{id}/bookmark.json`

Authentication: no security requirement declared for this operation.

Parameters:

- `Api-Key` (header, string, required)
  Type: string

- `Api-Username` (header, string, required)
  Type: string

- `id` (path, string, required)
  Type: string

Responses:

- 200: topic updated

## Examples

### cURL

```bash
curl -X PUT 'https://discourse.example.com/t/string/bookmark.json' \
  -H 'Api-Key: string' \
  -H 'Api-Username: string'
```

### JavaScript

```javascript
const response = await fetch('https://discourse.example.com/t/string/bookmark.json', {
  method: 'PUT',
  headers: {
    'Api-Key': 'string',
    'Api-Username': 'string',
  },
});

const data = await response.text();
```

### Python

```python
import requests

response = requests.put(
    'https://discourse.example.com/t/string/bookmark.json',
    headers={
        'Api-Key': 'string',
        'Api-Username': 'string',
    },
)
print(response.text)
```
