Dashboard
APIUpdate Multiple Targets
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Mock
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Update Multiple Targets

Modify several access destinations in a single API call. Pass an array of target updates to enable or disable multiple Discord roles or Telegram channels at once. This is efficient for bulk operations like temporarily disabling access during maintenance.

PATCH/v2/projects/{project_id}/targets

Authorization

Bearer TokenRequired

Path Parameters

project_idstringrequired

The unique identifier of the project.

Request Body

The request body should be an array of objects, each containing:

target_idstringrequired

The internal target ID (UUID) to update.

is_enabledboolean

Whether the target is enabled.

target_namestring

Display name for the target.

Last updated: