# Create new article

`POST /api/help-center-article`

Authentication (security requirement alternatives):

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

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

Responses:

- 201: Success Add article

Content type: application/json

Type: object

Schema: [HelpCenterArticle](https://sourcey-gauzy.pages.dev/api-reference/models/helpcenterarticle/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

- `name` (required)
  Type: string

- `description` (optional)
  Type: string

- `data` (optional)
  Type: string

- `draft` (optional)
  Type: boolean

- `privacy` (optional)
  Type: boolean

- `index` (required)
  Type: number

- `descriptionHtml` (optional)
  Type: string

- `descriptionJson` (optional)
  Type: object

- `descriptionBinary` (optional)
  Type: string

- `isLocked` (optional)
  Type: boolean

- `color` (optional)
  Type: string

- `externalId` (optional)
  Type: string

- `categoryId` (required)
  Type: string

- `parentId` (optional)
  Type: string

- `ownedById` (optional)
  Type: string

- `projects` (optional)
  Type: array
  
  Items:
    Type: array

- `tags` (optional)
  Type: array
  
  Items:
    Type: array

- 401: Unauthorized

- 403: Forbidden

## Examples

### cURL

```bash
curl -X POST 'http://localhost:3000/api/help-center-article' \
  -H 'Authorization: Bearer YOUR_TOKEN'
```

### JavaScript

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

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

### Python

```python
import requests

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