Add Root Category

Add Root Category

Endpoint for adding categories in root.

Request
URI
POST
https://{api_host}/vco/api/categories
COPY
Request Body
category-context of type(s) application/json
Optional
{
    "name": "string",
    "description": "string",
    "type": "string"
}
string
name
Optional

name

string
description
Optional

description

string
type
Optional

type

Possible values are : ResourceElementCategory, ConfigurationElementCategory, WorkflowCategory, ScriptModuleCategory,
Responses
200

successful operation

Returns category of type(s) application/json
{
    "path": "string",
    "name": "string",
    "description": "string",
    "href": "string",
    "id": "string",
    "relations": {
        "total": 0,
        "start": 0,
        "link": [
            {
                "rel": "string",
                "attribute": [
                    {
                        "displayValue": "string",
                        "name": "string",
                        "value": "string"
                    }
                ],
                "href": "string",
                "type": "string"
            }
        ]
    },
    "type": "string"
}
string
path
Optional

path

string
name
Optional

name

string
description
Optional

description

string
href
Optional

href

string
id
Optional

id

relations
Optional

relations

string
type
Optional

type

Possible values are : ResourceElementCategory, ConfigurationElementCategory, WorkflowCategory, ScriptModuleCategory,

201

The request is successful

Operation doesn't return any data structure

400

Category name must be specified

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 name

Operation doesn't return any data structure