# Refresh gravatar

`POST /user_avatar/{username}/refresh_gravatar.json`

Authentication: no security requirement declared for this operation.

Parameters:

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

Responses:

- 200: response

Content type: application/json

Type: any

- `gravatar_upload_id` (required)
  Type: integer; nullable

- `gravatar_avatar_template` (required)
  Type: string; nullable

Additional properties: false

## Examples

### cURL

```bash
curl -X POST 'https://discourse.example.com/user_avatar/string/refresh_gravatar.json'
```

### JavaScript

```javascript
const response = await fetch('https://discourse.example.com/user_avatar/string/refresh_gravatar.json', {
  method: 'POST',
});

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

### Python

```python
import requests

response = requests.post('https://discourse.example.com/user_avatar/string/refresh_gravatar.json')
print(response.text)
```
