---
title: "createCourseReward"
method: POST
path: "/core/api/v1/course-reward"
tags: ["course-reward-controller"]
---

# createCourseReward

`POST /core/api/v1/course-reward`

## Request

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

## Headers

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

## Request body

- CourseRewardDTO
  - `celebImageUrl` string
  - `courseId` integer
  - `domainId` integer
  - `eventDescription` string
  - `eventLabel` string
  - `eventType` 'COURSE_COMPLETION_25' | 'COURSE_COMPLETION_50' | 'COURSE_COMPLETION_75' | 'COURSE_COMPLETION_100' | 'GOAL' | 'CHAPTER_COMPLETED_100' | 'POST_CREATION' | 'POST_LIKE' | 'COMENT_LIKE' | 'SUB_COMMENT_LIKE' | 'POST_COMMENT' | 'POST_SUB_COMMENT'
  - `id` integer
  - `rewardDays` integer
  - `rewardPoints` integer
  - `rewardTime` 'ANY_TIME' | 'NO_OF_DAYS'

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