For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inTry it free
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
DocsGuidesSDKsIntegrationsAPI docsTutorialsFlagship blog
  • REST API overview
    • Access Tokens
    • Account Members
    • Account Usage Beta
    • AI Configs
    • Announcements
    • Applications Beta
    • Approvals
    • Approvals Beta
    • Audit Log
    • Code References
    • Contexts
    • Context Settings
    • Custom Roles
    • Data Export Destinations
    • Environments
    • Experiments
    • Feature Flags
    • Feature Flags Beta
    • Flag Import Configurations Beta
    • Flag Links Beta
      • POSTCreate flag link
      • DELDelete flag link
      • GETList flag links
      • PATCHUpdate flag link
    • Flag Triggers
    • Follow Flags
    • Holdouts Beta
    • Insights Charts Beta
    • Insights Deployments Beta
    • Insights Flag Events Beta
    • Insights Pull Requests Beta
    • Insights Repositories Beta
    • Insights Scores Beta
    • Integration Audit Log Subscriptions
    • Integration Delivery Configurations Beta
    • Integrations Beta
    • Layers
    • Metrics
    • Metrics Beta
    • OAuth2 Clients
    • Persistent Store Integrations Beta
    • Projects
    • Relay Proxy Configurations
    • Release Pipelines Beta
    • Releases Beta
    • Scheduled Changes
    • Segments
    • Tags
    • Teams
    • Teams Beta
    • Users
    • Users Beta
    • User Settings
    • Views Beta
    • Webhooks
    • Workflows
    • Workflow Templates
    • Other
Sign inTry it free
LogoLogo
REST API overviewFlag Links Beta

Update flag link

PATCH
/api/v2/flag-links/projects/:projectKey/flags/:featureFlagKey/:id
PATCH
/api/v2/flag-links/projects/:projectKey/flags/:featureFlagKey/:id
$curl -X PATCH https://app.launchdarkly.com/api/v2/flag-links/projects/projectKey/flags/featureFlagKey/id \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '[
> {
> "op": "replace",
> "path": "/title",
> "value": null
> }
>]'
1{
2 "_links": {},
3 "_id": "1234a56b7c89d012345e678f",
4 "_deepLink": "https://example.com/archives/123123123",
5 "_timestamp": {},
6 "_createdAt": 1654104600000,
7 "_key": "flag-link-key-123abc",
8 "_integrationKey": "string",
9 "title": "Example link title",
10 "description": "Example link description",
11 "_metadata": {},
12 "_member": {
13 "_links": {},
14 "_id": "string",
15 "firstName": "string",
16 "lastName": "string"
17 }
18}
Update a flag link. Updating a flag link uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
Was this page helpful?
Previous

Flag Triggers

Next
Built with

Update a flag link. Updating a flag link uses a JSON patch representation of the desired changes. To learn more, read Updates.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

projectKeystringRequiredformat: "string"
The project key
featureFlagKeystringRequiredformat: "string"
The feature flag key
idstringRequiredformat: "string"
The flag link ID

Request

This endpoint expects a list of objects.
opstringRequired
The type of operation to perform
pathstringRequired
A JSON Pointer string specifying the part of the document to operate on
valueanyOptional
A JSON value used in "add", "replace", and "test" operations

Response

Flag link response
_linksmap from strings to objects
The location and content type of related resources
_idstring
The ID of this flag link
_deepLinkstring
The URL for the external resource the flag is linked to
_timestampobject
The time to mark this flag link as associated with the external URL. Defaults to the creation time of the flag link, but can be set to another time during creation.
_createdAtlong
Timestamp of when the flag link was created
_keystring
The flag link key
_integrationKeystring

The integration key for an integration whose manifest.json includes the flagLink capability, if this is a flag link for an existing integration

titlestring
The title of the flag link
descriptionstring
The description of the flag link
_metadatamap from strings to strings

The metadata required by this integration in order to create a flag link, if this is a flag link for an existing integration. Defined in the integration’s manifest.json file under flagLink.

_memberobject
Details on the member associated with this flag link

Errors

400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
409
Conflict Error
429
Too Many Requests Error