Skip to content

Endpoint

  • Method: PUT
  • Path: /admin/courses/{course_id}
  • Edition: Core
  • Controller: CourseAdminController@updateCourse
  • Route source: fluent-community/Modules/Course/Http/course_api.php:21
  • Controller source: fluent-community/Modules/Course/Http/Controllers/CourseAdminController.php

PUT Update Course

PUT
/admin/courses/{course_id}

Update Course for the FluentCommunity Courses API.

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

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Parameters

Path Parameters

course_id*

Course ID extracted from the URL path.

Type
integer
Required

Request Body

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

Responses

Successful response

application/json
JSON
{
  
"message": "string",
  
"course": {
  
  
"id": 0
  
}
}

Playground

Authorization
Variables
Key
Value
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation