SnozeDevelopers
API referenceAdmin

Reject feature flag creation over HTTP

Always answers 405 after the admin check: feature flags are registered in product code, not created through the API. It exists so the console can explain that rule rather than return a bare 404. Platform admins only.

POST
/v1/admin/flags
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/admin/flags"
{  "_tag": "ApiNotFound",  "error": "not_found",  "message": "That item does not exist, or this key cannot see it.",  "status": 404}