Versions Compared

Key

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


Info

This API is available starting with versionĀ @5.2.0.1

...

AttributeTypeDescription
filePathStringFully qualified path of the file
objectTypeStringType of the object
sequenceNumberIntegerOrder placement of this file in the package

Response Codes

HTTP Code
Description
200Project Package was found and returned
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
404Project or Package not found
500Unexpected internal server error

Example

If we had a package with the name ALM-150 in a project with id 14935, when we run a GET request at the URL

...

AttributeTypeDescription
filePathStringFully qualified path of the file
objectTypeStringType of the object
sequenceNumberIntegerOrder placement of this file in the package

Example

...

Response Codes

HTTP Code
Description
200Project Package was created successfully
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
404Project or Package not found
500Unexpected internal server error

Example

If the POST request receives the following JSON package object,

...

AttributeTypeDescription
filePathStringFully qualified path of the file
objectTypeStringType of the object
sequenceNumberIntegerOrder placement of this file in the packageof this file in the package

Response Codes

HTTP Code
Description
200Project Package was found and updated
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
404Project or Package not found
500Unexpected internal server error

Example

If we had an package in a project with id 14935 with the following attributes:

...

Back to Top

...

PATCH

This PATCH service will update an existing package with the information passed through a JSON object. If an attribute of the JSON is null, it will not be updated in the package. Any new files included in the request will be appended to the list of files already in the package.

Info
titleAPI URL

http://host:port/flexdeploy/rest/v1/project/{projectId}/package/{packageName}

...

AttributeTypeDescription
filePathStringFully qualified path of the file
objectTypeStringType of the object
sequenceNumberIntegerOrder placement of this file in the package

Response Codes

HTTP Code
Description
200Project Package was found and updated
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
404Project or Package not found
500Unexpected internal server error

Example

If we had an package in a project with id 14935 with the following attributes:

...

Parameter
Type
Required
Description

projectId

URLYesThis is a URL parameter for the Project Id which is searched to find package.
packageNameURLYesThis is a URL parameter for the Package which will be deleted from project.

Response Codes

HTTP Code
Description
200Package was deleted or not present.
400Bad request
401Authentication failure
403Authorization failure (no access to resource)
404Project not found
500Unexpected internal server error

...