For the complete documentation index, see llms.txt. This page is also available as Markdown.

App Moderators

List application moderators

get

Returns the moderators of an application and their permissions

Authorizations
api-tokenstringRequired
Path parameters
appIDstringRequired

ID of the application

Responses
200

Moderators returned successfully

application/json
statusstringOptional
messagestringOptional
get/app/{appID}/team
GET /v2/app/{appID}/team HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
  "status": "ok",
  "team": [
    {
      "modID": "197651928518230016",
      "perms": [
        "start_app",
        "stop_app",
        "restart_app",
        "logs_app",
        "status_app"
      ],
      "avatar": "https://cdn.discordapp.com/embed/avatars/0.png",
      "username": "exemplo"
    }
  ]
}

Add moderator

post

Adds a moderator to the application with the given permissions

Authorizations
api-tokenstringRequired
Path parameters
appIDstringRequired

ID of the application

Body
modIDstringRequired

User ID of the moderator

Responses
200

Moderator added

application/json
statusstringOptional
messagestringOptional
post/app/{appID}/team
POST /v2/app/{appID}/team HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 101

{
  "modID": "197651928518230016",
  "perms": [
    "start_app",
    "stop_app",
    "restart_app",
    "logs_app",
    "status_app"
  ]
}
{
  "status": "ok",
  "app": {
    "appID": "1745338954955",
    "modID": "197651928518230016",
    "perms": [
      "start_app",
      "stop_app",
      "restart_app",
      "logs_app",
      "status_app"
    ]
  }
}

Edit moderator permissions

put

Replaces the permissions of a moderator of the application

Authorizations
api-tokenstringRequired
Path parameters
appIDstringRequired

ID of the application

Body
modIDstringRequired

User ID of the moderator

Responses
200

Permissions updated

application/json
statusstringOptional
messagestringOptional
put/app/{appID}/team
PUT /v2/app/{appID}/team HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 64

{
  "modID": "197651928518230016",
  "perms": [
    "logs_app",
    "status_app"
  ]
}
{
  "status": "ok",
  "app": {
    "appID": "1745338954955",
    "modID": "197651928518230016",
    "perms": [
      "logs_app",
      "status_app"
    ]
  }
}

Remove moderator

delete

Removes a moderator from the application

Authorizations
api-tokenstringRequired
Path parameters
appIDstringRequired

ID of the application

modIDstringRequired

ID of the moderator to remove

Responses
200

Moderator removed

application/json
statusstringOptional
messagestringOptional
delete/app/{appID}/team/{modID}
DELETE /v2/app/{appID}/team/{modID} HTTP/1.1
Host: api.discloud.app
api-token: YOUR_API_KEY
Accept: */*
{
  "status": "text",
  "message": "text"
}