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.
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.
- Sandbox serverhttps://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/profiles/assign/bulk
- Production serverhttps://connect.creditsafe.com/v1/compliance/kyc-protect/profiles/assign/bulk
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"
]
}'Success
Risk rating given to profile. Available values are notApplicable, veryLow, low, medium, high and veryHigh.
Status of the profile. Available values are new, approved, declined, pending, cancelled, referred, closed and approvedReviewDue.
Type of the profile. Available values are trust, individual, soleTrader, company, plc, partnership and otherEntity.
Mode of profile creation. Available values are manual, import and batchUpload.
Status of profile creation. Available values are submitted, preprocessed, validated, queued, inProgress, processed, completed, partiallyCompleted and failed.
[ { "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" } ]