# Update Employee Own Profile

`PUT /api/employee/{id}/profile`

Authentication (security requirement alternatives):

```json
[
  {
    "bearer": []
  }
]
```

- bearer: http (bearer), header JWT. Enter JWT token

Parameters:

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

Request body: application/json (required)

Type: object

Schema: [UpdateProfileDTO](https://sourcey-gauzy.pages.dev/api-reference/models/updateprofiledto/index.md)

- `contact` (optional)
  Type: object

Responses:

- 200: Profile has been successfully updated.

- 400: Invalid input. Check the response body for more details.

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X PUT 'http://localhost:3000/api/employee/string/profile' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "contact": {}
}'
```

### JavaScript

```javascript
const body = `{
  "contact": {}
}`;

const response = await fetch('http://localhost:3000/api/employee/string/profile', {
  method: 'PUT',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body,
});

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

### Python

```python
import requests

body = '''{
  "contact": {}
}'''

response = requests.put(
    'http://localhost:3000/api/employee/string/profile',
    data=body.encode('utf-8'),
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
        'Content-Type': 'application/json',
    },
)
print(response.text)
```
