Update Permission Rule

Update Permission Rule

Updates principal or access rights for single permission rule with given ID.

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

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

principal

string
rights
Optional

rights

string
href
Optional

href

relations
Optional

relations

Responses
204

No content

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 package with the specified name, the user does not have 'admin' access rights for that package, or the permission rule with the specified ID does not exist

Operation doesn't return any data structure