headless lms

Create an app

POST /api/apps. Create an app. Headless LMS Apps API reference.

POST
/api/apps

Requires organizations:write. 409, with the reason as error: domain_taken when another app has the domain, in this organization or any other; domain_reserved when the domain is the admin app's, the API's or another listed origin of the installation; slug_taken; courses_taken or community_taken when the organization already has an app that serves it. 400 when the app would serve neither, or the domain is not a bare origin: a path, a query, a username or password, a wildcard or a trailing dot is refused.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/api/apps" \  -H "Content-Type: application/json" \  -d '{    "name": "string",    "slug": "string",    "domain": "string",    "courses": true,    "community": true  }'
{  "id": "string",  "name": "string",  "slug": "string",  "domain": "string",  "courses": true,  "community": true}
{  "error": "string",  "message": "string",  "requestId": "string",  "issues": [    {      "path": "string",      "message": "string"    }  ]}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}
{  "error": "string",  "message": "string",  "requestId": "string"}