sessions
Delete Niche
Delete all sessions for a given niche — A7: route EACH through _teardown_session (cancel + settle-via-release + delete FK children in order), not a raw sa_delete(Session). The raw delete 500'd on any post-CP3 session (outputs/story_picks/scheduled_posts FKs have no ON DELETE) and stranded held credits on pre-CP3 ones (credit_transactions.session_id SET NULL → the open reservation could never be reconstructed/released). Commit per session so one bad row doesn't roll back the batch.
delete/sessions/niches
Request
- Base URL: https://api.nicheangle.com (the document declares no server; this is the origin it was published from)
- URL: https://api.nicheangle.com/sessions/niches
- Auth: none declared
Query parameters
nichestring required
Headers
authorizationstring nullable
Response
Successful Response
unknown required
Changes
No recorded changes to this operation across all 1 revision of this API.