Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

AttributesTypeDescription
projectIdLongThe id of the project
packageNameStringThe name of the package (used for partial deployment projects only)
projectVersionIdLongThe version id of the project
buildEnvironmentIdLongThe build environment associated with the project
forceBuildBooleanWhether or not the project should be force built

Back to Top

...

POST

This POST service will create a new snapshot with the same attributes as the given JSON object.

Info
titleAPI URL

http://host:port/flexdeploy/rest/release/{releaseId}/snapshot

Parameters

AttributesRequiredTypeDescription
releaseIdYesURLThe release to create a snapshot from
snapshotNameNoStringThe name of the snapshot is automatically generated at the time of creation
snapshotIdNoLongThe id of the snapshot is returned after being created
descriptionNoStringThe description of the snapshot
projectsNoList<Project>A list of projects associated with the snapshot
projectIdYesLongThe id of the project
packageNameYes*StringThe name of the package (used for partial deployment projects only)
projectVersionIdNoLongThe version id of the project to use instead of creating a new version
buildEnvironmentIdNoLongThe build environment associated with the project
forceBuildNoBooleanWhether or not the project should be force built

*only if it's a partial deployment project

Defaults

If some information is not included in the JSON object, the following default values will be used:

AttributesTypeValueDescription
descriptionStringnullThe description of the snapshot
projectsList<Project>projects associated with the releaseA list of projects associated with the snapshot
projectIdLongproject ids associated with the releaseThe id of the project
packageNameStringpackages associated with the releaseThe name of the package (used for partial deployment projects only)
projectVersionIdLongNew project versionThe version id of the project to use instead of creating a new version
buildEnvironmentIdLongThe only build environment associated with the project, otherwise an error occursThe build environment associated with the project
forceBuildBooleanfalseWhether or not the project should be force built

Example

If the POST request sent to http://host:port/flexdeploy/rest/release/12345/snapshot receives the following JSON environment object,

...