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 |
---|---|---|---|
| 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 |
---|---|---|---|
| Array | Comma-separated list of project IDs that this integration will be shared with. | Mandatory |
| Boolean | Set | Mandatory |
| Boolean | Set | 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