Skip to content

Assigns A List Of Profiles To User

Request

Assigns list of profiles to a user, and returns the updated profiles.

If any profile id doesn't exist, the whole request is rejected with 404 Profiles Not Found and no profile is assigned. An unknown userId returns 404 User Not Found. Leaving userId out removes the assignment, so assignedToId and assignedTo come back as null. An empty profileIds list returns 200 with an empty list.

Security
bearerToken
Headers
X-Team-Idstring, (uuid)

Optional. The team to work in, using a team id from List Teams. If left out, the default team is used. Records created in a team can only be seen by sending that team's id. A team id that doesn't exist, or a team being deleted, is rejected with 404 Team Not Found.

Example:6b78aed4-9ba6-441b-80b9-df9bea3b7c97
Bodyapplication/json

The user to assign, and the ids of the profiles to assign to them.

userIdinteger or null, (int32)

Id of the User to assign the Profiles. Passing null will unassign the profile

profileIdsArray of strings, (uuid)required

List of profiles to assign a user

curl -i -X PUT \
  https://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/profiles/assign/bulk \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-Team-Id: 6b78aed4-9ba6-441b-80b9-df9bea3b7c97' \
  -d '{
    "userId": 0,
    "profileIds": [
      "497f6eca-6276-4993-bfeb-53cbbbba6f08"
    ]
  }'

Responses

Success

Bodyapplication/json
Array [
idstring, (uuid)

Id of the Profile

namestring

Name of the Profile

riskRatingstring

Risk rating given to profile. Available values are notApplicable, veryLow, low, medium, high and veryHigh.

Enum:"notApplicable""veryLow""low""medium""high""veryHigh"
statusstring

Status of the profile. Available values are new, approved, declined, pending, cancelled, referred, closed and approvedReviewDue.

Enum:"new""pending""approved""approvedReviewDue""declined""referred""cancelled""closed"
typestring

Type of the profile. Available values are trust, individual, soleTrader, company, plc, partnership and otherEntity.

Enum:"company""individual""otherEntity""partnership""plc""soleTrader""trust"
internalIdstring or null

Internal Id given to profile by customer

assignedToIdinteger or null, (int32)

Id of the user assigned to the profile

assignedTostring or null

Name of the user assigned to the profile

safeNumberstring or null

safe number of the business linked to the profile

companyIdstring or null

company id of the business linked to the profile

formationDatestring or null, (date)

Formation date of the business linked to the profile

createdAtstring, (date-time)

Profile created time

createdByIdinteger, (int32)

Id of the user who created the profile

createdBystring

Name of the user who created the profile

modifiedAtstring or null, (date-time)

Profile last updated time

modifiedByIdinteger or null, (int32)

Id of the user who last modified the profile

modifiedBystring or null

Name of the user who last modified the profile

kycApprovedAtstring or null, (date-time)

Date when the profile got approved

kycReviewOnstring or null, (date)

Date when profile is to be reviewed

kycStatusUpdatedOnstring or null, (date-time)

Date when the profile status was last updated

kycCommentsstring or null

Profile comments

noteCountinteger, (int32)

Count of notes associated with profile

attachmentCountinteger, (int32)

Count of attachments associated with profile

keyPartyCountinteger, (int32)

Count of key parties associated with profile

uboCountinteger, (int32)

Count of UBOs associated with profile

openAlertCountinteger, (int32)

Count of Open Alerts

modeOfCreationstring

Mode of profile creation. Available values are manual, import and batchUpload.

Enum:"manual""import""batchUpload""v2Migration"
importStatusstring or null

Status of profile creation. Available values are submitted, preprocessed, validated, queued, inProgress, processed, completed, partiallyCompleted and failed.

isLockedboolean

Value indicating whether the profile is locked

isKycMonitoredboolean

Value indicating whether the profile is kyc monitored

correlationIdstring

A unique ID assigned to this request.

]
Response
[ { "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "name": "string", "riskRating": "notApplicable", "status": "new", "type": "company", "internalId": "string", "assignedToId": 0, "assignedTo": "string", "safeNumber": "string", "companyId": "string", "formationDate": "2019-08-24", "createdAt": "2019-08-24T14:15:22Z", "createdById": 0, "createdBy": "string", "modifiedAt": "2019-08-24T14:15:22Z", "modifiedById": 0, "modifiedBy": "string", "kycApprovedAt": "2019-08-24T14:15:22Z", "kycReviewOn": "2019-08-24", "kycStatusUpdatedOn": "2019-08-24T14:15:22Z", "kycComments": "string", "noteCount": 0, "attachmentCount": 0, "keyPartyCount": 0, "uboCount": 0, "openAlertCount": 0, "modeOfCreation": "manual", "importStatus": "string", "isLocked": true, "isKycMonitored": true, "correlationId": "string" } ]