# Share Portfolio With Users Update/Create user permissions within the customer for portfolio. Endpoint: PATCH /monitoring/portfolios/{portfolioId}/sharingPermissions Version: 1.10.9 Security: bearerToken ## Path parameters: - `portfolioId` (number, required) The unique identifier of the portfolio, obtained from . ## Request fields (application/json): - `revokeAll` (string) If set to "true", all user permissions will be revoked for the portfolio. By default set to "false". - `userPermissions` (array) - `userPermissions.csUserId` (integer) A creditsafe user id. - `userPermissions.permissions` (string) Comma separated permissions. "View" permission gets automatically added to the user if "Add", "Edit", "Remove" permissions are set. ## Response 200 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. Example: "23921650-c073-11ea-860f-06bc8182190e" - `data` (object) - `data.portfolioId` (string) A unique ID assigned to each portfolio. Example: "13437356" - `data.customerId` (number) A unique ID assigned to your customer account. Example: 101375376 - `data.status` (string) A message about the status of this request. Example: "Success" ## Response 400 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. - `message` (string) - `details` (string) Provides further information on why the request was rejected ## Response 401 fields (application/json): - `error` (string) ## Response 403 fields (application/json): - `message` (string) Example: "Access forbidden" ## Response 404 fields (application/json): - `correlationId` (string) A unique ID assigned to this request. - `message` (string) - `details` (string) Provides further information on why the request was rejected