Import Workflow

Import Workflow

Imports a workflow in a given category. The workflow binary content should be available as multi-part content (see RFC-2387 for details). Details of working with multi-part resources depend on the used client's HTTP/REST library. For example, in Spring it will look like:

Sample client code:
-------------------
String url = "https://localhost:8281/vco/api/content/packages/";
MultiValueMap parts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/some.workflow");
parts.put("file", Arrays.asList(r));
new RestTemplate().postForLocation(url, parts);
-------------------

Request
URI
POST
https://{api_host}/vco/api/content/workflows/{categoryId}
COPY
Query Parameters
string
categoryId
Required

categoryId

boolean
overwrite
Optional

overwrite


Request Body
importAction2 of type(s) multipart/form-data
Optional
{
    "file": "string"
}
Responses
200

The request is successful

Operation doesn't return any data structure

400

Request is not valid (validation error)

Operation doesn't return any data structure

401

User is not authorized

Operation doesn't return any data structure

404

Cannot find a category with the specified ID.

Operation doesn't return any data structure