---
title: "createCourseBanner"
method: POST
path: "/core/api/v1/course/{courseId}/banner"
tags: ["course-banner-controller"]
---

# createCourseBanner

`POST /core/api/v1/course/{courseId}/banner`

## Request

- Base URL: `https://api.freshlearn.com`
- URL: `https://api.freshlearn.com/core/api/v1/course/{courseId}/banner`
- Auth: none declared

## Path parameters

- `courseId` string, required

## Headers

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

## Request body

- CourseBannerDTO
  - `bannerBgColor` string
  - `bannerContentUrl` string
  - `bannerImageAlignment` 'RIGHT' | 'LEFT' | 'BOTTOMCENTRE'
  - `bannerMimeType` 'IMAGE' | 'VIDEO'
  - `button1Color` string
  - `button1TextColor` string
  - `button2Color` string
  - `button2TextColor` string
  - `buttonName` string
  - `buttonName2` string
  - `buttonName3` string
  - `courseId` integer
  - `description` string
  - `heading` string
  - `id` integer
  - `showButton1` boolean
  - `showButton2` boolean

## 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)
