Palbase Auth API · API
/admin/social-auth/providers/{provider}Change one social provider
Enable or disable a provider and replace its browser and native clients. Send the ETag you read as If-Match; the answer is the whole configuration with its new ETag.
Called by your server, with the project's secret key.
Path
providerstring · requiredHeaders
If-Matchstring · requiredRequest body
browser_clientsobject[] · optionalenabledboolean · optionalnative_clientsobject[] · optionalcurl -X PATCH "https://<your-ref>.palbase.studio/admin/social-auth/providers/<provider>" \
-H "apikey: $PALBASE_SECRET_KEY" \
-H "content-type: application/json" \
-d '{"browser_clients":[{"application_key":"string","credential_ref":"string","enabled":false,"key":"string","platform":"web","return_uris":[null],"variant":"string","web_client_id":"string"}],"enabled":false,"native_clients":[{"application_key":"string","bundle_id":"string","enabled":false,"ios_client_id":"string","key":"string","platform":"ios","redirect_uri":"string","variant":"string"}]}'Responses
200Current configuration; secrets are never returned
400Bad Request
401Unauthorized
403Not permitted with this key; or the project is the platform's own (`owner_only`): every change on its admin surface — any account's address, password, factors, sessions or roles, an account made or imported, a sign-in minted, a setting — is its owner's or its operator's alone. The request carries, besides the project's key, the owner's access token (X-Palbase-Owner; a passkey sign-in of the last 15 minutes, else 401 `insufficient_user_authentication`) or the operator's token (X-Palbase-Operator). Its key reads.
404Not Found
409Conflict
410Gone
412Configuration changed; read again before saving
413Request Entity Too Large
422Unprocessable Entity
428If-Match is required
429Too Many Requests
503Service Unavailable
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation SocialProviderPatch of auth's contract.