Updating Connections with Management API options.pcke Value Set to Disabled

Overview

This article explains why the options.pcke value gets set to disabled when using the Options parameter when updating a Connection with the Management API.

Applies To

  • PATCH calls using the /api/v2/connections/{id} endpoint.

Cause

Auth0 Management API documentation for Updating a Connection states:

Note: If you use the options parameter, the entire options object is overriden (sic). To avoid partial data or other issues, ensure all parameters are present when using this option.”

Solution

Always include a value for options.pcke if the parameter is leveraged in your configuration. Omitting this parameter in your call overrides the value and sets it to disabled, which causes unexpected and unintended behavior.