Skip to content

Add support for disabling and enabling sites - #38

Draft
vbergerondev wants to merge 1 commit into
mainfrom
enable-disable-sites-sdk
Draft

Add support for disabling and enabling sites#38
vbergerondev wants to merge 1 commit into
mainfrom
enable-disable-sites-sdk

Conversation

@vbergerondev

@vbergerondev vbergerondev commented Jul 15, 2026

Copy link
Copy Markdown
Contributor

Updates the SDK to support the disable/enable site endpoints.

Adds `disable()` and `enable()` to the site endpoint and resource, which
POST to `sites/{id}/disable` and `sites/{id}/enable` and return the
`event_id` of the resulting event.

The new `disabled_at` site attribute needs no changes, as it is exposed
through the resource's magic getter, and the 400 responses these
endpoints return are already mapped to `BadRequestException`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant