JSON support in request parameters for POST requests.
Both XML and JSON can be used to pass request parameters.
The following are some examples:
createCollection
|
Function |
Create a collection. |
||
|
Description |
This request creates a new collection according to the given attributes. |
||
|
Type |
POST |
||
|
URL Format |
|
||
|
Header |
qpp-content-type:json |
||
|
Java API |
Method Name |
Class Name |
|
|
|
|
||
|
Parameters |
Name |
Type |
Description |
|
|
string |
The op parameter allows you to specify which operation is to be performed. (Mandatory) |
|
|
|
long or string |
The parent collection for the new collection. (Mandatory)There is a choice between collection ID, Name and Path when providing a value. |
|
|
|
string |
The set of attribute values.: See "Request/Response parameter formats."(All atributes are Optional) |
|
|
|
string |
Defaults to |
|
|
Returns |
Returns the |
||
|
Examples |
URL:
|
||
checkinNew
|
Function |
Check in a new asset. |
||
|
Description |
Include the file in the request body or as file part. |
||
|
Type |
POST |
||
|
URL Format |
|
||
|
Header |
qpp-content-type: json |
||
|
Java API |
Method Name |
Class Name |
|
|
|
|
||
|
Parameters |
Name |
Type |
Description |
|
|
string |
The op parameter allows you to specify which operation is to be performed. (Mandatory) |
|
|
|
|
See "checkinNewRequest/Response parameter formats." The following attributes are Mandatory:Content
type (There is a choice between content type ID, Name and Hierarchy when providing
a value for the Content type) attribute. Collection (There is a choice between collection
ID, Name and Path when providing a value for the |
|
|
|
|
See "Request/Response parameter formats." If this parameter is passed, the Platform Server will check-in the asset and create child relations with the new asset being checked in at the same time. (Optional). |
|
|
|
boolean |
Specify if this version of the asset is to be checked in to the QPP server as a major or a minor version. (Optional) |
|
|
Returns |
Returns an assetInfo object of the newly checked in asset with its metadata. |
||
|
Examples |
URL:
|
||
createDomains
|
Function |
Create Attribute Domains. |
||
|
Description |
This request is used to create a single or multiple attribute domains at one time. |
||
|
Type |
POST |
||
|
URL Format |
|
||
|
Header |
qpp-content-type: json |
||
|
Java API |
Method Name |
Class Name |
|
|
|
|
||
|
Parameters |
Name |
Type |
Description |
|
|
string |
The op parameter allows you to specify which operation is to be performed. (Mandatory) |
|
|
|
string |
List of attribute domains to create. |
|
|
Returns |
Returns a |
||
|
Examples |
URL:
|
||
createSearches
|
Function |
Create searches. |
||
|
Description |
This request creates a single or multiple searches at one time. |
||
|
Type |
POST |
||
|
URL Format |
|
||
|
Header |
qpp-content-type: json |
||
|
Java API |
Method Name |
Class Name |
|
|
|
|
||
|
Parameters |
Name |
Type |
Description |
|
|
long |
The op parameter allows you to specify which operation is to be performed. (Mandatory) |
|
|
|
string |
An XML object containing metadata of searches to be created. |
|
|
Returns |
Returns a |
||
|
Examples |
URL:
|
||
