Skip to content

Share Portfolio With Users

Request

Update/Create user permissions within the customer for portfolio.

Security
bearerToken
Path
portfolioIdintegerrequired

The unique identifier of the portfolio, obtained from /portfolios.

Example:123456
Bodyapplication/jsonrequired
revokeAllstring

If set to "true", all user permissions will be revoked for the portfolio. By default set to "false".

Example:"false"
userPermissionsArray of objects(ConnectMonitoringSharePortfolioRequestBody)

The users to share the portfolio with, and their permissions.

curl -i -X PATCH \
  https://connect.sandbox.creditsafe.com/v1/monitoring/portfolios/123456/sharingPermissions \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "revokeAll": "false",
    "userPermissions": [
      {
        "csUserId": 101106166,
        "permissions": "View,Add"
      },
      {
        "csUserId": 1000027380,
        "permissions": "View,Add,Edit,Remove"
      }
    ]
  }'

Responses

Success. The sharing permissions were updated.

Bodyapplication/json
correlationIdstring

A unique ID assigned to this request.

Example:"23921650-c073-11ea-860f-06bc8182190e"
dataobject

The result of the sharing request.

Response
{ "correlationId": "23921650-c073-11ea-860f-06bc8182190e", "data": { "portfolioId": 13437356, "customerId": 101375376, "status": "Success" } }