# Create new record

`POST /api/pipelines`

Authentication (security requirement alternatives):

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

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

Request body: application/json (required)

Type: object

- `select` (optional)
  Type: object

- `relations` (optional)
  Type: object

- `where` (required)
  Type: object

- `order` (optional)
  Type: object

- `withDeleted` (optional)
  Type: boolean

- `take` (optional)
  Type: number
  
  minimum: 0
  
  maximum: 100

- `skip` (optional)
  Type: number
  
  minimum: 0

Responses:

- 201: The record has been successfully created.

- 400: Invalid input, The response body may contain clues as to what went wrong

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/pipelines' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "select": {},
  "relations": {},
  "where": {},
  "order": {},
  "withDeleted": true,
  "take": 0,
  "skip": 0
}'
```

### JavaScript

```javascript
const body = `{
  "select": {},
  "relations": {},
  "where": {},
  "order": {},
  "withDeleted": true,
  "take": 0,
  "skip": 0
}`;

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

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

### Python

```python
import requests

body = '''{
  "select": {},
  "relations": {},
  "where": {},
  "order": {},
  "withDeleted": true,
  "take": 0,
  "skip": 0
}'''

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