Share a Project Integration

JFrog REST APIs

Content Type
REST API
ft:sourceType
Paligo

Description: Shares a project integration with one or more projects.

Security: Requires a valid user

Usage: PUTapi/v1/projectIntegrations/{projectIntegrationId}/share

Produces: application/json

URL Parameters:

Parameter

Type

Description

Required/Optional

projectIntegrationId

Integer

Id of the project integration to be shared.

Use the Get Project Integrations API to get the list of all Project integrations.

Required

Request Parameters:

Parameter

Type

Description

Required/Optional

sharedWithProjects

Array

Comma-separated list of project IDs that this integration will be shared with.

Mandatory

shareWithAllProjects

Boolean

Set true to share the integration with all projects.

Mandatory

sharedReadOnly

Boolean

Set true to share the integration as read-only.

Mandatory

Sample Request:

{
    "sharedWithProjects": [1, 2],
    "sharedWithAllProjects": false,
    "shareReadOnly": false
}

Sample Response:

{
    "resourceName": "testproj1_projGit",
    "environmentsList": [
        "DEV"
    ],
    "sharedWithProjectsList": [],
    "sharedWithAllProjects": false,
    "sharedReadOnly": false
}

Response Codes:

200: Success

400: Invalid parameters

404: If no project integration is found for the supplied id