Description: Updates a project integration.
Security: Requires a valid user
Usage: PUT api/v1/projectIntegrations/{projectIntegrationId}
Produces: application/json
URL Parameters:
Parameter | Type | Description | Required/Optional |
---|---|---|---|
| Integer | Id of the project integration. | Required |
Request Parameters:
Parameter | Type | Description | Required/Optional |
---|---|---|---|
| String | Name of the integration. | Mandatory |
| Array | An array of objects with the values of the integration | Optional |
| Object | Object consisting of integration properties. | Optional |
| Object | An object containing allPipelineSourcesAllowed. | Optional |
| Array | An array of environments to which the integration is to be available. | Optional |
Sample Response:
{ "propertyBag": {}, "id": 4, "name": "my_github", "projectId": 1, "masterIntegrationId": 20, "masterIntegrationType": "scm", "masterIntegrationName": "github", "providerId": 34, "createdByUserName": "admin", "updatedByUserName": "admin", "createdBy": 3, "updatedBy": 3, "createdAt": "2019-09-25T20:32:03.753Z", "updatedAt": "2019-09-25T20:32:03.753Z", "formJSONValues": [ { "label": "token", "value": "mytoken" }, { "label": "url", "value": "https://api.github.com" } ], "permissions": { "pipelineSources": { "allPipelineSourcesAllowed": true } } }
Response Codes:
200: Success
400: Invalid parameters
404: If no project integration is found for the supplied id