Skip to content

Endpoint

  • Method: POST
  • Path: /admin/courses
  • Edition: Core
  • Controller: CourseAdminController@createCourse
  • Route source: fluent-community/Modules/Course/Http/course_api.php:19
  • Controller source: fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php

POST Create Course

POST
/admin/courses

Create Course for the FluentCommunity Courses API.

Controller: CourseAdminController@createCourse
Route source: fluent-community/Modules/Course/Http/course_api.php:19

Authorizations

ApplicationPasswords

WordPress Application Passwords — use Basic auth with username:application_password.

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
  
"parent_id": "string",
  
"title": "string",
  
"privacy": "string",
  
"description": "string",
  
"status": "string",
  
"course_type": "string",
  
"settings": {
  
  
"emoji": "string",
  
  
"shape_svg": "string",
  
  
"disable_comments": "string",
  
  
"hide_members_count": "string",
  
  
"course_layout": "string",
  
  
"course_details": "string",
  
  
"hide_instructor_view": "string",
  
  
"show_instructor_students_count": "string",
  
  
"custom_lock_screen": "string",
  
  
"onboard_redirect_url": "string",
  
  
"public_lesson_view": "string"
  
},
  
"slug": "string",
  
"category_ids": [
  
  
"string"
  
]
}

Responses

Successful response

application/json
JSON
{
  
"course": {
  
  
"id": 0
  
}
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation