Dashboard
APIUpdate Target API - Modify Access Settings | BotSubscription
api.botsubscription.com
GET/v1/endpoint
AuthenticationBearer
Token
Stays in this tab. Required for this endpoint — the value below is what gets sent.
Examples
curl --request GET \
  --url https://api.botsubscription.com/v1/endpoint \
  --header 'Authorization: Bearer sk_live_•••'

Update Target - Modify Access Destination Settings via API

Modify a single access destination's settings. You can enable or disable the target to control whether the subscription bot grants access to it, or update the display name. Disabling a target does not remove existing members but prevents new access grants.

These settings belong to the target shared by every plan that uses it. To add or remove a target for one plan, update that plan's plan_targets instead.

PATCH/v2/projects/{project_id}/targets/{target_id}

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.

target_idstringrequired

The internal target ID (UUID).

Request Body

is_enabledboolean

Whether the target is enabled.

target_namestring

Display name for the target.

The success response contains total: 1, a message, and the updated target object in data.

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.

Last updated: