# Create new record interview

`POST /api/candidate-interview`

Authentication (security requirement alternatives):

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

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

Responses:

- 201: Success Add Interview

Content type: application/json

Type: object

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

- `deletedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `createdAt` (optional)
  Type: string, date-time
  
  The creation timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `updatedAt` (optional)
  Type: string, date-time
  
  The last update timestamp of the entity.
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `id` (optional)
  Type: string

- `isActive` (optional)
  Type: boolean
  
  default: true

- `isArchived` (optional)
  Type: boolean
  
  default: false

- `archivedAt` (optional)
  Type: string, date-time
  
  Example:
  
  ```json
  "2018-11-21T06:20:32.232Z"
  ```

- `tenantId` (optional)
  Type: string

- `organizationId` (optional)
  Type: string

- `title` (required)
  Type: string

- `startTime` (required)
  Type: string, date-time

- `endTime` (required)
  Type: string, date-time

- `location` (optional)
  Type: string

- `note` (required)
  Type: string

- `rating` (optional)
  Type: number

- `feedbacks` (required)
  Reference: [CandidateFeedback](https://sourcey-gauzy.pages.dev/api-reference/models/candidatefeedback/index.md); Type: object

- `technologies` (required)
  Reference: [CandidateTechnologies](https://sourcey-gauzy.pages.dev/api-reference/models/candidatetechnologies/index.md); Type: object

- `personalQualities` (required)
  Reference: [CandidatePersonalQualities](https://sourcey-gauzy.pages.dev/api-reference/models/candidatepersonalqualities/index.md); Type: object

- `interviewers` (required)
  Reference: [CandidateInterviewers](https://sourcey-gauzy.pages.dev/api-reference/models/candidateinterviewers/index.md); Type: object

- `candidate` (required)
  Reference: [Candidate](https://sourcey-gauzy.pages.dev/api-reference/models/candidate/index.md); Type: object

- `candidateId` (required)
  Type: string

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/candidate-interview' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

```javascript
const response = await fetch('http://localhost:3000/api/candidate-interview', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer YOUR_TOKEN',
  },
});

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

### Python

```python
import requests

response = requests.post(
    'http://localhost:3000/api/candidate-interview',
    headers={
        'Authorization': 'Bearer YOUR_TOKEN',
    },
)
print(response.text)
```
