Import Action
Imports an action in a given category. The action 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/";
MultiValueMapparts = new LinkedMultiValueMap ();
Resource r = new FileSystemResource("D:/path/to/some.action");
parts.put("file", Arrays.asList(r));
new RestTemplate().postForLocation(url, parts);
-------------------
Request
URI
POST
https://{api_host}/vco/api/content/actions/{categoryName}
COPY
Path Parameters
string
categoryName
Required
categoryName
Request Body
File
of type(s)
multipart/form-data
Optional
{
"file": "string"
}
string
file
Required
file
Responses
202
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 an action category with the specified name.
Operation doesn't return any data structure
Code Samples
COPY
curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/octet-stream' https://{api_host}/vco/api/content/actions/{categoryName}
On This Page
Content Service Operations
POST
Import Workflow
GET
List All Packages 1
POST
Import Package 1
POST
Import Action
GET
List Content Types
GET
List Workflows
GET
Export Workflow
DELETE
Delete Workflow 1
GET
Export Package 1
DELETE
Delete Package 1
GET
List Actions
GET
Export Action
DELETE
Delete Action