Contents
Changelog
January 23, 2023
Announced: January 23, 2023
January 23, 2023
We are introducing pipeline visibility inside the visibility groups feature in our web app and API so users can restrict and control access to specific pipelines and the deals inside them.
What is changing?
When visibility restrictions are applied for a pipeline, the responses of the Pipelines API, Deals API, and Stages API endpoints will behave as following:
1. Pipelines API
The GET endpoints of the Pipelines API will not return information for pipelines that are not visible to the user making the request. This applies to the following endpoints:
GET /pipelinesGET /pipelines/{id}GET /pipelines/{id}/conversion_statisticsGET /pipelines/{id}/dealsGET /pipelines/{id}/movement_statistics
The GET endpoints for retrieving the info of a specific pipeline will return HTTP 404 if the pipeline is not visible.
Deleting a pipeline that is the last visible pipeline for any visibility group will not be possible and a HTTP 400 error response will be returned. This applies to the DELETE /pipelines/{id} endpoint.
2. Deals API
The GET endpoints of the Deals API will not return deal information that is not visible to the user making the request. This applies to the following endpoints:
GET /dealsGET /deals/searchGET /deals/summaryGET /deals/timelineGET /deals/{id}GET /deals/{id}/activitiesGET /deals/{id}/filesGET /deals/{id}/flowGET /deals/{id}/followersGET /deals/{id}/mailMessagesGET /deals/{id}/participantsGET /deals/{id}/personsGET /deals/{id}/products
The endpoints for retrieving and updating the information of a specific deal will return HTTP 403 if the deal is not visible.
The POST /deals endpoint will return HTTP 400 in these cases:
- When creating a deal with the
pipeline_idorstage_idparameters for a pipeline/stage that is not visible to the user - When creating a deal with the
pipeline_idorstage_idanduser_idparameters for a pipeline/stage that is not visible to the assigned user
If a deal is being created without pipeline_id or stage_id assigned, the deal will be automatically assigned to the first pipeline visible to the user.
The PUT /deals/{id} endpoint will return HTTP 403 when supplying a stage_id of a stage that is not visible to the user making the request and/or a user_id who does not have visibility for the pipeline/stage.
3. Stages API
The GET /stages endpoint will not return information about stages which are not visible to the user making the request.
The GET /stages/{id} and GET /stages/{id}/deals endpoints will return HTTP 404 if the specified stage is not visible.
In case of any questions or comments, let us know in the Developer’s Community.