POST /admin/extension/service/{id}/rights

Operation:
POST /admin/extension/service/{id}/rights
Description:
Registers right to the rights managed by this extension service. The right will be added only if a right with the same name does not already exists.
Since:
5.1
Input parameters
The right to be registered.

Consume media type(s):
application/vnd.vmware.admin.right+xml
application/vnd.vmware.admin.right+json
Input type:
RightType
Output parameters
Produce media type(s):
application/vnd.vmware.admin.right+xml
application/vnd.vmware.admin.right+json
Output type:
RightType
Examples
Request
HTTP 1.1
POST /api/admin/extension/service/15eacf4c-b4d0-4dba-9c65-7977a9a10ba2/rights

Headers:
Content-Length: 376
Content-Type: application/vnd.vmware.admin.right+xml; charset=ISO-8859-1
x-vcloud-authorization: SZMKkKToUBmDWSEeqZYL2yxpCqDiyToj5PYW3TigOrI=

Body:
<?xml version="1.0" encoding="UTF-8"?><vcloud:Right
    xmlns:vcloud="http://www.vmware.com/vcloud/v1.5"
    name="rightName">
    <vcloud:Description>someDescription</vcloud:Description>
    <vcloud:Category>someCategory</vcloud:Category>
    <vcloud:BundleKey>someBundleKey</vcloud:BundleKey>
    <vcloud:ServiceNamespace>ServiceNamespace</vcloud:ServiceNamespace>
</vcloud:Right>
Response
HTTP/1.1 201 Created

Headers:
Content-Length: 931
Content-Type: application/vnd.vmware.admin.right+xml;version=5.5
Location: https://vcloud.example.com/api/admin/right/122ab74e-b2c2-4405-9ead-870e9856c942
Vary: Accept-Encoding

Body:
<?xml version="1.0" encoding="UTF-8"?><Right
    xmlns="http://www.vmware.com/vcloud/v1.5"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    href="https://vcloud.example.com/api/admin/right/122ab74e-b2c2-4405-9ead-870e9856c942"
    id="urn:vcloud:right:122ab74e-b2c2-4405-9ead-870e9856c942"
    name="{ServiceNamespace}:rightName"
    type="application/vnd.vmware.admin.right+xml"
    xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://https://vcloud.example.com/api/v1.5/schema/master.xsd">
    <Link
        href="https://vcloud.example.com/api/admin/right/122ab74e-b2c2-4405-9ead-870e9856c942"
        rel="edit"
        type="application/vnd.vmware.admin.right+xml"/>
    <Link
        href="https://vcloud.example.com/api/admin/right/122ab74e-b2c2-4405-9ead-870e9856c942"
        rel="remove"/>
    <Description>someDescription</Description>
    <Category>someCategory</Category>
    <BundleKey>someBundleKey</BundleKey>
    <ServiceNamespace>ServiceNamespace</ServiceNamespace>
</Right>