Update a social network
Update OAuth configuration for a specific social network platform.
Update OAuth configuration for a specific social network platform. This endpoint allows you to update client_key, client_secret, or the YouTube BYOK oauth_callback_url independently. Omit oauth_callback_url to preserve it or send null to restore the default callback. This is commonly used for:
- Credential Rotation: Regularly rotating secrets for security compliance
- OAuth App Migration: Moving from one OAuth application to another
- Correction: Fixing incorrect credentials stored during initial setup
- Regeneration: When credentials are regenerated in the platform's developer portal
Important: Updating credentials may require reconnecting social accounts if the OAuth application identifier (client_key) changes. If only the secret is rotated while keeping the same app, existing connections may continue to work depending on the platform.
Permissions: Requires configurations:manage. Access is limited by the API key creator's current organization membership and stored key ceiling. See Organization permissions.
id*stringapplication/json- body
Schema for updating a customer social network. You can update client_key, client_secret, or the YouTube BYOK oauth_callback_url independently. Omitting oauth_callback_url preserves it; null clears it. This is useful for credential rotation, migrating to new OAuth applications, or fixing incorrect credentials. Only the fields you provide will be updated. Note: Updating credentials may require reconnecting social accounts if the OAuth application changes significantly.
oauth_callback_url?|YouTube BYOK only. Exact customer-hosted HTTPS callback registered with Google. Omit to preserve the default; PATCH null clears it. Requires exactly one YouTube credential configuration.
client_key?stringNew OAuth Client ID, API Key, or App ID to replace the existing value. Use this when you need to update credentials due to rotation, app recreation, or moving to a new OAuth application. Leave undefined if only the secret needs updating.
1 <= lengthclient_secret?stringNew OAuth Client Secret to replace the existing value. Use this when rotating secrets for security, or when migrating to new credentials. The old secret is immediately invalidated and encrypted. Leave undefined if only the client key needs updating.
1 <= lengthSocial network updated successfully
application/json- response
Successful operation response with network data
success*booleandata*Customer social network response (client_secret is never included)
curl -X PATCH 'https://api.outstand.so/v1/social-networks/string' \ -H 'Content-Type: application/json' \ -d '{}'{ "success": true, "data": { "oauth_callback_url": "string", "id": "string", "network": "threads", "client_key": "string", "createdAt": "2019-08-24T14:15:22Z", "updatedAt": "2019-08-24T14:15:22Z" }}