NEXUS / APIBot Platform v2.3
USER-KEY:
Developer Portal
PUT/api/v1/bot/commands.php

Bulk upsert global slash commands

Request Body

application/json
[
    {
        "name": "example",
        "description": "string",
        "options": [
            []
        ]
    }
]

Example Request

cURL
curl -X PUT 'https://nexuschatly.com/api/v1/bot/commands.php' \
  -H 'Authorization: Bot nx_bot_...' \
  -H 'Content-Type: application/json' \
  -d '[
    {
        "name": "example",
        "description": "string",
        "options": [
            []
        ]
    }
]'

Responses

200Successful response
400Error response
401Error response
403Error response
429Error response