Skip to content

Activates a Pro licence key against the remote licensing service and stores the returned licence data.

Endpoint

  • Method: POST

  • Path: /admin/license

  • Edition: PRO

  • Controller: LicenseController@saveLicense

  • Route source: fluent-community-pro/app/Http/Routes/api.php:18

  • Controller source: fluent-community-pro/app/Http/Controllers/LicenseController.php

  • Requires the FluentCommunity community-admin permission (or a WordPress super admin).

  • Requires FluentCommunity Pro; makes an outbound HTTP request, so it can fail on restricted networks.

Reconstructed sample

This endpoint belongs to a module that is not active on the reference install (or needs a file upload), so the payload below was reconstructed by reading the controller rather than recorded. Field names and types follow the source; values are illustrative.

POST Save License Key

POST
/admin/license

Activates a Pro licence key against the remote licensing service and stores the returned licence data.

Controller: LicenseController@saveLicense
Route source: fluent-community-pro/app/Http/Routes/api.php:18

Authorizations

ApplicationPasswords

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

Type
API Key (header: Authorization)

Request Body

application/json
JSON
{
  
"license_key": "string"
}

Responses

Successful response

application/json
JSON
{
  
"license_data": {
  
  
"license_key": "string",
  
  
"status": "string",
  
  
"variation_id": "string",
  
  
"variation_title": "string",
  
  
"expires": "string",
  
  
"activation_hash": "string"
  
},
  
"message": "string"
}

Playground

Authorization
Body

Samples

Powered by VitePress OpenAPI

FluentCommunity developer documentation