Create Content Source Using POST

Create Content Source Using POST

Returns the new content source

Request
URI
POST
https://{api_host}//cava-s-182-041.eng.vmware.com/content/api/sources
COPY
Query Parameters
string
apiVersion
Optional

The version of the API in yyyy-MM-dd format (UTC). For versioning information, please refer to /content/api/about


Request Body

source

ContentSource of type(s) application/json
Required
{
    "config": {
        "contentType": "string",
        "integrationId": "string",
        "repository": "string",
        "branch": "string",
        "path": "string"
    },
    "createdAt": "string",
    "createdBy": "string",
    "description": "string",
    "id": "string",
    "lastUpdatedAt": "string",
    "lastUpdatedBy": "string",
    "name": "string",
    "orgId": "string",
    "projectId": "string",
    "syncEnabled": false,
    "typeId": "string"
}
object
config
Optional

Source custom configuration

string As date-time As date-time
createdAt
Optional

Creation time

string
createdBy
Optional

Created By

string
description
Optional

Content Source description

string As uuid As uuid
id
Required

Content Source id

string As date-time As date-time
lastUpdatedAt
Optional

Update time

string
lastUpdatedBy
Optional

Updated By

string
name
Required

Content Source name

string
orgId
Optional

Associated org

string
projectId
Optional

Associated projects

boolean
syncEnabled
Optional

Is Sync Enabled

object
syncProperties
Optional

Sync related properties

string
typeId
Required

Content Source type

Possible values are : com.github, com.gitlab, com.vmware.marketplace,
Responses
201

Created content source

Returns ContentSource of type(s) application/json
{
    "config": {
        "contentType": "string",
        "integrationId": "string",
        "repository": "string",
        "branch": "string",
        "path": "string"
    },
    "createdAt": "string",
    "createdBy": "string",
    "description": "string",
    "id": "string",
    "lastUpdatedAt": "string",
    "lastUpdatedBy": "string",
    "name": "string",
    "orgId": "string",
    "projectId": "string",
    "syncEnabled": false,
    "typeId": "string"
}
object
config
Optional

Source custom configuration

string As date-time As date-time
createdAt
Optional

Creation time

string
createdBy
Optional

Created By

string
description
Optional

Content Source description

string As uuid As uuid
id
Required

Content Source id

string As date-time As date-time
lastUpdatedAt
Optional

Update time

string
lastUpdatedBy
Optional

Updated By

string
name
Required

Content Source name

string
orgId
Optional

Associated org

string
projectId
Optional

Associated projects

boolean
syncEnabled
Optional

Is Sync Enabled

object
syncProperties
Optional

Sync related properties

string
typeId
Required

Content Source type

Possible values are : com.github, com.gitlab, com.vmware.marketplace,

400

Invalid request data

Operation doesn't return any data structure

403

Invalid project id or integration id

Operation doesn't return any data structure