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
      • DELDelete application
      • DELDelete application version
      • GETGet application by key
      • GETGet application versions by application key
      • GETGet applications
      • PATCHUpdate application
      • PATCHUpdate application version
    • 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
    • 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 overviewApplications Beta

Update application version

Beta
PATCH
/api/v2/applications/:applicationKey/versions/:versionKey
PATCH
/api/v2/applications/:applicationKey/versions/:versionKey
$curl -X PATCH https://app.launchdarkly.com/api/v2/applications/applicationKey/versions/versionKey \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '[
> {
> "op": "replace",
> "path": "/supported",
> "value": null
> }
>]'
1{
2 "autoAdded": true,
3 "key": "2",
4 "name": "01.02.03",
5 "_access": {
6 "denied": [
7 {
8 "action": "string",
9 "reason": {
10 "effect": "allow",
11 "resources": [
12 "proj/*:env/*;qa_*:/flag/*"
13 ],
14 "notResources": [
15 "string"
16 ],
17 "actions": [
18 "*"
19 ],
20 "notActions": [
21 "string"
22 ],
23 "role_name": "string"
24 }
25 }
26 ],
27 "allowed": [
28 {
29 "action": "string",
30 "reason": {
31 "effect": "allow",
32 "resources": [
33 "proj/*:env/*;qa_*:/flag/*"
34 ],
35 "notResources": [
36 "string"
37 ],
38 "actions": [
39 "*"
40 ],
41 "notActions": [
42 "string"
43 ],
44 "role_name": "string"
45 }
46 }
47 ]
48 },
49 "_links": {},
50 "_version": 1,
51 "creationDate": 1654104600000,
52 "supported": true
53}
Update an application version. You can update the `supported` field. Requires a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes to the application version. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).
Was this page helpful?
Previous

Approvals

Next
Built with

Update an application version. You can update the supported field. Requires a JSON patch representation of the desired changes to the application version. To learn more, read Updates.

Authentication

Authorizationstring
API Key authentication via header

Path parameters

applicationKeystringRequiredformat: "string"
The application key
versionKeystringRequiredformat: "string"
The application version key

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

Application version response
autoAddedboolean
Whether the application version was automatically created, because it was included in a context when a LaunchDarkly SDK evaluated a feature flag, or if the application version was created through the LaunchDarkly UI or REST API.
keystring
The unique identifier of this application version
namestring
The name of this version
_accessobject
Details on the allowed and denied actions for this application version
_linksmap from strings to objects
The location and content type of related resources
_versioninteger
Version of the application version
creationDatelong
Timestamp of when the application version was created
supportedboolean

Whether this version is supported. Only applicable if the application kind is mobile.

Errors

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