Create Application
Creates a new application with optional parameters including description, logo, and privacy settings.
Endpoint
POST /app/create
Authentication
Header | Value |
---|---|
Authorization | Bearer <jwt_token> |
Request Body
The request uses multipart/form-data
format with the following fields:
Field | Type | Required | Description |
---|---|---|---|
app | string | ✅ | The name of the application to be created |
file | file | ❌ | Logo of the application |
description | string | ❌ | App description |
private | boolean | ❌ | Lock app (if selected, the app will be stored in a private bucket and cannot be changed) |
Example Request
cURL
curl --location 'http://localhost:9000/app/create' \
--header 'Authorization: Bearer <jwt_token>' \
--form 'data="{\"app\":\"appName\"}"'
Response
Success Response (200 OK)
{
"createAppResult.Created": "641459ffb8760d74164e7e3c"
}
Response Fields
Field | Type | Description |
---|---|---|
createAppResult.Created | string | The unique identifier (ID) of the created application |
Notes
- The
private
field is irreversible - once set totrue
, the app cannot be made public later - The
file
field accepts common image formats (PNG, JPG, etc.) - The
description
field is optional but recommended for better app management