Project
Lists the projects accessible by the user.
Projects listed successfully
Authentication error
GET /v2/projects HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Projects listed successfully",
"data": [
{
"_id": "proj1719010867306",
"name": "My Project",
"teamID": null,
"clusterName": "fenrir"
}
]
}Creates a new project. Requires a compatible plan.
Project name (max. 50 characters)
Team to link (optional)
Project created successfully
Invalid data
Authentication error
Plan does not allow creating projects or limit reached
POST /v2/projects HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 60
{
"name": "My Project",
"description": "Production environment"
}{
"status": "ok",
"message": "Project created successfully",
"data": {
"_id": "proj1719010867306",
"ownerID": "470638301895294976",
"name": "My Project",
"description": "Production environment",
"teamID": null,
"clusterName": "fenrir"
}
}Returns the details of a project, including team and apps.
Project ID
Project loaded successfully
Authentication error
No permission to view the project
Project not found
GET /v2/projects/{projectID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Project loaded successfully",
"data": {
"project": {
"_id": "proj1719010867306",
"name": "My Project",
"memberRole": "owner"
},
"team": null,
"apps": [
{
"_id": "1719010867306",
"nameTAG": "My Bot"
}
]
}
}Removes a project. Linked apps are unlinked (not deleted).
Project ID
Project deleted successfully
Authentication error
No permission to delete the project
Project not found
DELETE /v2/projects/{projectID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "Project deleted successfully"
}Updates the name, description and/or icon of a project.
Project ID
Project updated successfully
Invalid data
Authentication error
No permission to manage the project
Project not found
PATCH /v2/projects/{projectID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 26
{
"name": "Renamed Project"
}{
"status": "ok",
"message": "Project updated successfully",
"data": {
"_id": "proj1719010867306",
"name": "Renamed Project"
}
}Links a team to the project (teamID) or unlinks it (teamID null). Owner only.
Project ID
Team ID to link, or null to unlink
Team linked or unlinked successfully
Invalid teamID
Authentication error
Not the project owner or insufficient plan
Project or team not found
PATCH /v2/projects/{projectID}/team HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 30
{
"teamID": "team1719010867306"
}{
"status": "ok",
"message": "Team linked to the project successfully",
"data": {
"_id": "proj1719010867306",
"teamID": "team1719010867306"
}
}Lists the apps that can be added to the project.
Project ID
Available apps listed successfully
Authentication error
No permission to view the project
Project not found
GET /v2/projects/{projectID}/apps HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"data": [
{
"_id": "1719010867306",
"nameTAG": "My Bot",
"clusterName": "fenrir"
}
]
}Adds an app to the project. If the cluster differs, use migrate=true to migrate (202 response, asynchronous migration).
Project ID
Application ID
If true, migrates the app to the project's cluster
App added to the project successfully
Migration started (processed asynchronously)
Authentication error
No permission to manage the project
Project or app not found
Cluster mismatch (migration required) or migration already in progress
PUT /v2/projects/{projectID}/apps/{appID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 17
{
"migrate": false
}{
"status": "ok",
"message": "App added to the project successfully",
"data": {
"_id": "1719010867306",
"projectID": "proj1719010867306",
"clusterName": "fenrir"
}
}Removes the app from the project (sets projectID null). The app is not deleted.
Project ID
Application ID
App removed from the project successfully
Authentication error
No permission to manage the project
Project not found or app does not belong to the project
DELETE /v2/projects/{projectID}/apps/{appID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
"status": "ok",
"message": "App removed from the project successfully"
}Last updated