Edit an Application Version

Update the tag and properties of a JFrog AppTrust application version.

You can change the tag and custom properties of an application version in JFrog AppTrust. You can do this for a draft version or a finalized version. The version name stays the same.

To add sources, see Draft Application Version. You can add sources only while the version is a draft.

You can edit an application version in the following ways:

Tag and Property Rules

A tag is limited to 128 characters. It must begin and end with an alphanumeric character. Dashes, underscores, dots, and slashes are allowed between those characters.

Set tag to an empty string to remove the tag. Omit tag to leave the current tag unchanged.

properties replaces the values of each key you send. An empty array clears that key's values and leaves the key in place. Keys you omit are unchanged. delete_properties removes the key and its values.

Edit the Tag in the UI

You can edit the tag in the version description panel. Properties are not edited in the UI.

To edit the tag in the UI:

  1. In the JFrog Platform, go to AppTrust > Applications.
  2. Click the name of the application, and then click Lifecycle.
  3. On the Stages Board, click on the application version.
  4. In the description panel, click the Edit icon next to Tag.
  5. Enter the tag.
  6. Click the checkmark.

For more information, see Tag an Application Version.

Edit the Tag and Properties with the REST API

To edit the tag and properties with the REST API:

  1. Configure the Update Application Version request.
  2. In the body, set tag, properties, or delete_properties for the fields you want to change.

The request also accepts the query parameters async, fail_fast, and dry_run. The defaults are false, true, and false. You do not need to set them for a metadata edit.

Edit the Tag and Properties with the CLI

To edit the tag and properties with the CLI:

  • Run version-update with the tag, the properties, or both.
jf apptrust version-update <APP_KEY> <VERSION> --tag="<TAG>"

Where:

  • <APP_KEY>: The application key.
  • <VERSION>: The application version.
  • <TAG>: The tag to set. Use an empty string to remove the tag.

For example:

jf apptrust version-update my-auth-service 1.2.0 --tag="release-candidate"

Use --properties to set property values and --delete-properties to remove property keys. For more information, see Update Application Version CLI.

Frequently Asked Questions

Common questions about editing an application version.

plusFAQs
Q: Can I add sources while editing an application version?

A: You can add sources only while the version is a draft. This page changes the tag and properties. See Tag and Property Rules.

Q: What is the maximum length of a tag?

A: A tag is limited to 128 characters. It must begin and end with an alphanumeric character, and it may include dashes, underscores, dots, and slashes.

Q: How do I clear a property value without deleting the key?

A: Send the key in properties with an empty array. The values are removed and the key remains. To remove the key itself, send it in delete_properties.

Related Topics


Did this page help you?