Skip to content

v25.2.0

Choose a tag to compare

@LaunchDarklyReleaseBot LaunchDarklyReleaseBot released this 12 Nov 13:27
Immutable release. Only release title and notes can be modified.
5d51188

Added

  • Added optional bearerToken to the POST /api/v2/webhooks request body and to PATCH /api/v2/webhooks/{id}. If set, LaunchDarkly sends it in an Authorization: Bearer header with each webhook request. The token is write-only and is never returned. To remove it, patch /bearerToken with an empty string.
  • Added hasBearerToken to the webhook object. It is true when the webhook sends a bearer token, and omitted otherwise. Affected endpoints:
    • GET /api/v2/webhooks
    • POST /api/v2/webhooks
    • GET /api/v2/webhooks/{id}
    • PATCH /api/v2/webhooks/{id}
  • Added _id to each rule in GET /api/v2/projects/{projectKey}/ai-configs/{configKey}/targeting. It is the rule ID to pass as ruleId in targeting instructions that change a rule, such as addShadowRequest. Previously the ID was only available from the flags API.
  • Documented warehouse-native assignment on experiments. These fields already existed on the API and their behavior is unchanged; they were previously left out of the spec.
    • Added optional assignmentSourceType to the experiment object. It is the source of assignment data for the experiment, one of launchdarkly, snowflake, databricks, redshift, bigquery, or clickhouse. It defaults to launchdarkly, and experiments created before warehouse-native assignment existed omit it. Affected endpoints:
      • GET /api/v2/projects/{projectKey}/experiments
      • GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments
      • POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments
      • GET /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
      • PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
      • Holdout responses that return experiment objects
    • Added optional assignmentDataSource to the iteration object and to iteration request bodies. It holds the assignment data source key, the experimentId to match in that source, and the optional startTime and endTime of the assignment data window. Responses also include the source's display name. It is omitted for experiments that assign through flags. You can also set it through the assignmentDataSource field on the updateExperimentFields instruction.
    • Added optional assignmentVariantId to each treatment, in both iteration request bodies and responses. It is the variant identifier in the warehouse-native assignment source that maps to that treatment.
    • Request bodies affected by assignmentDataSource and assignmentVariantId:
      • POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments
      • POST /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}/iterations
      • PATCH /api/v2/projects/{projectKey}/environments/{environmentKey}/experiments/{experimentKey}
  • Documented the optional rollup query parameter on POST /api/v2/auditlog. Set it to 1 to return rolled-up audit log entries, which group related changes into one entry. The parameter already existed and its behavior is unchanged, but it was previously left out of the spec.
  • Added a sort query parameter to GET /api/v2/projects/{projectKey}/ai-configs/skills. Use sort=usedIn to order agent skills by the number of AgentControl configs that use them, fewest first, or sort=-usedIn for most first. Without sort, skills are still ordered by creation date, newest first.

Fixed

  • Fixed the next link in GET /api/v2/auditlog, POST /api/v2/auditlog and the REPORT form of /api/v2/auditlog dropping rollup. When a request sets rollup=1, its next link now includes rollup=1, so later pages are rolled up like the first page. Previously only the first page was rolled up.