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
nameStringName of the package
descriptionStringDescription of the package
filesList<PackageFile>All files in the package. More info on the PackageFile object is included below.
packageTypeStringType of the package (USER_MANAGED or DYNAMIC).
packageStatusStringPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release.
packagePathStringPath to package.xml. Only used for Salesforce projects.
includePathStringComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
excludePathStringComma separated list of regular expressions that define which project files will be excluded.  Applicable for DYNAMIC packages only.
testsStringSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

Code Block
themeEclipse
titlePackage GET Return JSON
{
   "name": "ALM-150",
   "description": null,
   "files": [
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pls",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 1
		},
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pkb",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 2
		}
	],
   "packageType": "USER_MANAGED",
   "packagePath": null,
   "packageStatus": "ACTIVE",
   "includePath" : null,
   "excludePath" : null,
   "tests": null,
   "testLevel": "NoTestRun",
   "versionSyntax": null
}

...

AttributeTypeRequiredDescription
nameStringYesName of the package
descriptionStringNoDescription of the package
sortAllBooleanNoWhether or not the files in the package should be sorted by type. If this is true, sequence numbers for files will be ignored. This will default to false
addFileFilterStringNoA filter to add all files containing this string
filesList<PackageFile>NoAll files in the package. More info on the PackageFile object is included below.
packageStatusString NoPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release. Defaults to Active.
packagePathString NoPath to package.xml. Only used for Salesforce projects.
packageTypeStringNoType of the package to create (DYNAMIC or USER_MANAGED).  Default is USER_MANAGED if not specified.
includePathStringNoComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
excludePathStringNoComma separated list of regular expressions that define which project files will be excluded.  Applicable for DYNAMIC packages only.
testsStringNoSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringNoSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringNoVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

AttributeTypeDescription
nameStringName of the package
descriptionStringDescription of the package
filesList<PackageFile>All files in the package. More info on the PackageFile object is included below.
packageStatusStringPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release. Defaults to ACTIVE.
packagePathStringPath to package.xml. Only used for Salesforce projects.
packageTypeStringType of the package (DYNAMIC or USER_MANAGED).
includePathStringComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
excludePathStringComma separated list of regular expressions that define which project files will be excluded.  Applicable for DYNAMIC packages only.
testsStringSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

Code Block
themeEclipse
titlePOST JSON
{
   "description": "Creating a package using the Package REST API",
   "name": "REST_Package",
   "files": [
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/webui/managePersonCO.java",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 1
		},
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/server/xxPersonAM.xml",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 2
		}
	],
  "packageStatus": "ACTIVE",
  "pacageTypepackagePath": "USER_MANAGED"null,
  "pacageType": "USER_MANAGED",
  "includePath": null,
  "excludePath": null,
  "tests": null,
  "testLevel": "NoTestsRun",
  "versionSyntax": null
}

...

AttributeTypeRequiredDescription
packageNameString (URL)YesName of the package, used to identify the package being updated. The name cannot be modified after the package is created
packageStatusString YesPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release.
descriptionStringNoDescription of the package
sortAllBooleanNoWhether or not the files in the package should be sorted by type. If this is true, sequence numbers for files will be ignored. This will default to false
addFileFilterStringNoA filter to add all files containing this string
filesList<PackageFile>NoAll files in the package. Any files in the package before this request will be deleted and replaced by the files in the request. More info on the PackageFile object is included below.
packageTypeStringNoType of the package (DYNAMIC or USER_MANAGED).  The default is USER_MANAGED if not specified.
packagePathStringNoPath to package.xml. Only used for Salesforce projects.
includePathStringNoComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
excludePathStringNoComma separated list of regular expressions that define which project files will be excluded.  Applicable for DYNAMIC packages only.
testsStringNoSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringNoSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringNoVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

AttributeTypeDescription
nameStringName of the package
descriptionStringDescription of the package
filesList<PackageFile>All files in the package. More info on the PackageFile object is included below.
packageStatusStringPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release.
packageTypeStringType of the package (DYNAMIC or USER_MANAGED). 
packagePathStringPath to package.xml. Only used for Salesforce projects.
includePathStringComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
versionSyntaxStringVersion syntax of the package. Only applies to Salesforce type partial deployment projects.
testsStringSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

Code Block
themeEclipse
titlePackage PUT JSON
{
   "description": "Creating a package using the Package REST API",
   "name": "REST_Package",
   "files": [
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pls",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 1
		},
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pkb",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 2
		},
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/webui/managePersonCO.java",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 3
		},
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/server/xxPersonAM.xml",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 4
		}
	],
   "packageStatus": "ACTIVE",
   "packageType": "USER_MANAGED",
   "packagePath": null,
   "includePath": null,
   "excludePath": null,
   "tests": null,
   "testLevel": "NoTestsRun",
   "versionSyntax": null
}

...

Code Block
themeEclipse
titlePackage PUT Return JSON
{
	"name": "REST_Package",
	"description": "This is the updated package",
	"files": [
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/webui/managePersonCO.java",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 1
		},
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pkb",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 2
		},
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/server/xxPersonAM.xml",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 3
		}
	],
   "packageStatus": "ACTIVE",
   "packageType": "USER_MANAGED",
   "packagePath": null,
   "includePath": null,
   "excludePath": null,
   "tests": null,
   "testLevel": "NoTestsRun",
   "versionSyntax": null
}

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}

...

AttributeTypeRequiredDescription
packageNameString (URL)YesName of the package, used to identify the package being updated. The name cannot be modified after the package is created
descriptionStringNoDescription of the package
sortAllBooleanNoWhether or not the files in the package should be sorted by type. If this is true, sequence numbers for files will be ignored. This will default to false
addFileFilterStringNoA filter to add all files containing this string
filesList<PackageFile>NoAll files in the package. Any new files will be appended to files already in the package. More info on the PackageFile object is included below
packageStatusString NoPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release.
packageTypeStringNoType of the package (DYNAMIC or USER_MANAGED). 
packagePathStringNoPath to package.xml. Only used for Salesforce projects.
includePathStringNoComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
excludePathStringNoComma separated list of regular expressions that define which project files will be excluded.  Applicable for DYNAMIC packages only.
testsStringNoSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringNoSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringNoVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

AttributeTypeDescription
nameStringName of the package
descriptionStringDescription of the package
filesList<PackageFile>All files in the package. More info on the PackageFile object is included below.
packageStatusStringPackage Status. Possible values (ACTIVE, COMPLETED, INACTIVE). Completed packages can not be modified and only active packages can be added to a release.
packageTypeStringType of the package (DYNAMIC or USER_MANAGED). 
packagePathStringPath to package.xml. Only used for Salesforce projects.
includePathStringComma separated list of regular expressions that define which project files will be included.  Applicable for DYNAMIC packages only.
excludePathStringComma separated list of regular expressions that define which project files will be excluded.  Applicable for DYNAMIC packages only.
testsStringSalesforce Tests. Only applies to Salesforce type partial deployment projects.
testLevelStringSalesforce Test Level. Only applies to Salesforce type partial deployment projects.
versionSyntaxStringVersion syntax of the package. Only applies to Salesforce type partial deployment projects.

...

Code Block
themeEclipse
titlePackage POST JSON
{
	"name": "REST_Package",
	"description": "This is the updated package",
	"files": [
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/webui/managePersonCO.java",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 1
		},
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pkb",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 2
		},
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/server/xxPersonAM.xml",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 3
		}
	],
   "packageStatus": "ACTIVE",
   "packageType": "USER_MANAGED",
   "packagePath": null,
   "includePath": null,
   "excludePath": null,
   "tests": null,
   "testLevel": "NoTestsRun",
   "versionSyntax": null
}

...

Code Block
themeEclipse
titlePackage PUT Receive JSON
{
   "name": "REST_Package",
   "description": "This is the updated package",
   "files": [
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pls",
			"sequenceNumber": 2
		}
	],
   "packageStatus": "ACTIVE",
   "packageType": "USER_MANAGED",
   "packagePath": null,
   "includePath": null,
   "excludePath": null
}

...

Code Block
themeEclipse
titlePackage PUT Return JSON
{
	"name": "REST_Package",
	"description": "This is the updated package",
	"files": [
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/webui/managePersonCO.java",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 1
		},
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pls",
			"sequenceNumber": 2
		},
		{
			"filePath": "/sql/XXHR_BIPUB_REP_PKG.pkb",
			"objectType": "DB Objects (SQLs)",
			"sequenceNumber": 3
		},
		{
			"filePath": "/java/xxt/oracle/apps/ak/xxperson/server/xxPersonAM.xml",
			"objectType": "Oracle Application Framework (OAF) JAVA",
			"sequenceNumber": 4
		}
	],
  "packageStatus": "ACTIVE",
  "packageType": "USER_MANAGED",
  "packagePath": null,
  "includePath": null,
  "excludePath": null
  "tests": null,
  "testLevel": "NoTestsRun",
  "versionSyntax": null
}

...