Insert Permissions For Object

Insert Permissions For Object

Set permissions for package with given name.

Request
URI
POST
https://{api_host}/vco/api/packages/{packageName}/permissions
COPY
Path Parameters
string
Required

Request Body
permissions of type(s) application/json
Optional
{
    "permissions": [
        {
            "href": "string",
            "relations": {
                "total": 0,
                "start": 0,
                "link": [
                    {
                        "attribute": [
                            {
                                "displayValue": "string",
                                "value": "string",
                                "name": "string"
                            }
                        ],
                        "href": "string",
                        "type": "string",
                        "rel": "string"
                    }
                ]
            },
            "principal": "string",
            "rights": "string"
        }
    ]
}
array of permission
permissions
Optional

permissions

Responses
200

successful operation

Returns permissions of type(s) application/json
{
    "permissions": [
        {
            "href": "string",
            "relations": {
                "total": 0,
                "start": 0,
                "link": [
                    {
                        "attribute": [
                            {
                                "displayValue": "string",
                                "value": "string",
                                "name": "string"
                            }
                        ],
                        "href": "string",
                        "type": "string",
                        "rel": "string"
                    }
                ]
            },
            "principal": "string",
            "rights": "string"
        }
    ]
}
array of permission
permissions
Optional

permissions


201

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