# Create employee proposal template

`POST /api/employee-proposal-template`

Creates a new employee proposal template in the database.

Authentication (security requirement alternatives):

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

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

Request body: application/json (required)

Payload to create a new proposal template.

Type: object

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

Responses:

- 201: The proposal template has been successfully created.

Content type: application/json

Type: object

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

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/employee-proposal-template' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{}'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/employee-proposal-template', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
    'Content-Type': 'application/json',
  },
  body: '{}',
});

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

### Python

```python
import requests

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