---
title: "createBlog"
method: POST
path: "/core/api/v1/blog"
tags: ["blog-controller"]
---

# createBlog

`POST /core/api/v1/blog`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/blog`
- Auth: none declared

## Headers

- `Authorization` string
- `domain` string
- `api-key` string

## Request body

- BlogDto
  - `authorIds` integer[]
  - `authors` UserEntity[]
    - `apiKey` string
    - `country` string
    - `countryCode` string
    - `countryDialCode` string
    - `createdDate` integer
    - `deleted` boolean
    - `description` string
    - `designation` string
    - `disabled` boolean
    - `domainId` integer
    - `email` string
    - `emailVerificationStatus` 'NOT_VERIFIED' | 'VERIFIED' | 'BLOCKED' | 'EMAIL_SENT'
    - `enableNotification` boolean
    - `firstName` string
    - `headline` string
    - `id` integer
    - `imageUrl` string
    - `lastName` string
    - `permission` string
    - `phone` string
    - `primaryEmail` boolean
    - `socialProfile` string
    - `source` 'FRESHLEARN' | 'GOOGLE' | 'FACEBOOK' | 'APPLE' | 'MICROSOFT' | 'SLACK'
    - `timeZone` string
    - `updatedDate` integer
    - `useSupportEmail` boolean
    - `userName` string
    - `userRoleId` integer
    - `userType` 'ADMIN' | 'AUTHOR' | 'USER' | 'OTHER'
  - `category` string
  - `content` string
  - `createdDate` integer
  - `domainId` integer
  - `domainName` string
  - `id` integer
  - `imageUrl` string
  - `likesCount` integer
  - `publishedDate` integer
  - `sequence` integer
  - `status` 'DRAFT' | 'PUBLISH'
  - `subHeading` string
  - `title` string
  - `view` integer

## Response `200`

OK

## Other responses

- `201`: Created
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found

---

[API](https://skmtc.dev/freshlearn/apis/freshlearn-api.md) · [All operations](https://skmtc.dev/freshlearn/apis/freshlearn-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freshlearn/apis/freshlearn-api/revisions/8a82ee14b586?raw)
