Skip to main content

UnifiedViews Method - Import DPU

Abstract

UnifiedViews Method - Import DPU

Description

Import a DPU into the UnifedViews system.

Note

This method enables deployment of DPUs by script.

This method is by default available only to UnifiedViews Administrators.

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

Content Type

multipart/form-data

Request

Supported Method

POST

HTTP Parameters

Parameter

Type

Required

Description

name

string

false

If set, this name will override DPU's default name.

description

string

false

If set, this description will override the DPU's default description.

visibility

enumerated

false

Visibility of imported DPU, if not present, the default value ' PUBLIC_RO ' is used.

force

boolean

false

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"
}