Create App
POST/apps
Create a new app for a user or organization.
Args: payload (CreateApp): The payload containing the app name and organization ID (optional).
Returns: CreateAppOutput: The output containing the newly created app's ID and name.
Raises: HTTPException: If there is an error creating the app or the user does not have permission to access the app.
Request
- application/json
Body
required
- MOD1
- MOD1
- MOD1
- MOD1
app_name App Name (string)required
template_keyobject
anyOf
string
project_idobject
anyOf
string
workspace_idobject
anyOf
string
organization_idobject
anyOf
string
Responses
- 200
- 422
Successful Response
- application/json
- Schema
- Example (from schema)
Schema
app_id App Id (string)required
app_name App Name (string)required
{
  "app_id": "string",
  "app_name": "string"
}
Validation Error
- application/json
- Schema
- Example (from schema)
Schema
- Array [ 
- Array [ 
- MOD1
- MOD2
- ] 
- ] 
detail
object[]
loc
object[]
required
anyOf
string
integer
msg Message (string)required
type Error Type (string)required
{
  "detail": [
    {
      "loc": [
        "string",
        0
      ],
      "msg": "string",
      "type": "string"
    }
  ]
}
Loading...