Create Entitlement Using POST 1

Create Entitlement Using POST 1

Creates an entitlement for a given project.

Request
URI
POST
https://{api_host}//sc2-10-185-6-200.eng.vmware.com/catalog/api/admin/entitlements
COPY
Request Body

The entitlement to be created

Entitlement of type(s) application/json
Optional
{
    "definition": {
        "description": "string",
        "iconId": "string",
        "id": "string",
        "name": "string",
        "numItems": 0,
        "sourceName": "string",
        "sourceType": "string",
        "type": "string"
    },
    "id": "string",
    "projectId": "string"
}
definition
Required

definition

string As uuid As uuid
id
Required

Entitlement id

string
projectId
Required

Project id

Responses
200

OK

Returns Entitlement of type(s) application/json
{
    "definition": {
        "description": "string",
        "iconId": "string",
        "id": "string",
        "name": "string",
        "numItems": 0,
        "sourceName": "string",
        "sourceType": "string",
        "type": "string"
    },
    "id": "string",
    "projectId": "string"
}
definition
Required

definition

string As uuid As uuid
id
Required

Entitlement id

string
projectId
Required

Project id


201

Created

Returns Entitlement of type(s) application/json
{
    "definition": {
        "description": "string",
        "iconId": "string",
        "id": "string",
        "name": "string",
        "numItems": 0,
        "sourceName": "string",
        "sourceType": "string",
        "type": "string"
    },
    "id": "string",
    "projectId": "string"
}
definition
Required

definition

string As uuid As uuid
id
Required

Entitlement id

string
projectId
Required

Project id


400

Catalog item or source cannot be entitled to the project

Operation doesn't return any data structure

401

Unauthorized

Operation doesn't return any data structure

404

Catalog item or catalog source not found

Operation doesn't return any data structure