UnifiedViews Method - Import DPU

Description
Import a DPU into the UnifedViews system.

This method is meant to enable deployment of DPUs by script.

URL: http://{host:port}/master/api/1/import/dpu/jar?name=&description=&visibility=&force=

Content Type

multipart/form-data

Request

Supported Method
POST

HTTP Parameters

ParameterTypeRequiredDescription
namestringfalseIf set, this name will override DPU's default name.
descriptionstringfalseIf set, this description will override the DPU's default description.
visibilityenumeratedfalseVisibility of imported DPU, if not present, the default value ' PUBLIC_RO ' is used.
forcebooleanfalse

If the DPU already exists, and this flag is set to true, the API will try to replace it.

If the DPU is already used in any pipeline, the import will fail.

Response

Content-Type

application/json

Status: 200 - OK

Example Response

Visibility invalid value, HTTP error code 400 Bad Request:

{
	"error":"No enum constant cz.cuni.mff.xrg.odcs.commons.app.auth.ShareType.foo"
}