# Update topic timestamp

`PUT /t/{id}/change-timestamp.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

Request body: application/json

Type: object

- `timestamp` (required)
  Type: string
  
  Example:
  
  ```json
  "1594291380"
  ```

Responses:

- 200: topic updated

Content type: application/json

Type: object

- `success` (optional)
  Type: string
  
  Example:
  
  ```json
  "OK"
  ```

## Examples

### cURL

```bash
curl -X PUT 'https://discourse.example.com/t/string/change-timestamp.json' \
  -H 'Api-Key: string' \
  -H 'Api-Username: string' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "timestamp": "1594291380"
}'
```

### JavaScript

```javascript
const body = `{
  "timestamp": "1594291380"
}`;

const response = await fetch('https://discourse.example.com/t/string/change-timestamp.json', {
  method: 'PUT',
  headers: {
    'Api-Key': 'string',
    'Api-Username': 'string',
    'Content-Type': 'application/json',
  },
  body,
});

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

### Python

```python
import requests

body = '''{
  "timestamp": "1594291380"
}'''

response = requests.put(
    'https://discourse.example.com/t/string/change-timestamp.json',
    data=body.encode('utf-8'),
    headers={
        'Api-Key': 'string',
        'Api-Username': 'string',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
