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 API KeyRequired
API key access: Unrestricted project API key required. Restricted keys cannot call this endpoint.
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.
The success response contains total, a message, and an array of updated targets in data. The optional metadata below applies to each target.
Response Metadata
parent_target_idstring | null
Optional parent target UUID; null when there is no parent.
participant_countinteger
Optional nonnegative participant count.
originstring
Optional target origin: manual or auto-discovered.
discovered_atstring | null
Optional discovery time as a UTC ISO 8601 timestamp, or null when no discovery time is recorded.