Debug V2

Set feature flag

Changed on

Set feature flag

Sets the market version (V1 or V2) for the authenticated user. This allows developers to switch between V1 and V2 experiences.

Restricted to users with developer privileges (admin role) only.

post/debug/feature-flag

Request

  • Base URL: /api/v2 (relative, and the document was published on a file host, not at the API’s origin)
  • URL: /api/v2/debug/feature-flag
  • Auth: one of:
    • loggedin (a scheme the document does not define)
    • loggedin (a scheme the document does not define)

Request body

market_version'V1' | 'V2'
flag_namestring

Flag name to set (e.g. "market_v2", "crafting", "wiki")

enabledboolean

Whether to enable or disable the flag

Response

Updated feature flag setting

user_idstring required

User ID

market_version'V1' | 'V2' required
messagestring required

Success message

Changes

    • ○

      the endpoint scheme security loggedin was added to the API

    • ○

      the endpoint scheme security loggedin was added to the API

    • ○

      the endpoint scheme security jwt was removed from the API

    • ○

      the endpoint scheme security jwt was removed from the API

    • ○

      added the new optional request property

    • ○

      added the new optional request property

    • ○

      the request property became optional