Skip to content

Update Profile Attachment By Profile And Attachment Id

Request

Updates an attachment's document type or description. The file itself can't be replaced: to change it, delete the attachment and add a new one. Returns 200 with the updated attachment.

Security
bearerToken
Path
profileIdstring, (uuid)required

Id of a profile.

Example:9a7ae0c8-f473-4ab6-8dbb-03fc061630cc
attachmentIdstring, (uuid)required

Id of a attachmentId.

Example:9a7ae0c8-f473-4ab6-8dbb-03fc061630cc
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 document type and description to update on the attachment.

documentTypestring

The document type of the attachment

descriptionstring

The description of the attachment. Limited to 250 characters.

curl -i -X PUT \
  https://connect.sandbox.creditsafe.com/v1/compliance/kyc-protect/profiles/9a7ae0c8-f473-4ab6-8dbb-03fc061630cc/attachments/9a7ae0c8-f473-4ab6-8dbb-03fc061630cc \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'X-Team-Id: 6b78aed4-9ba6-441b-80b9-df9bea3b7c97' \
  -d '{
    "documentType": "registrationDocuments",
    "description": "Contract test attachment (edited)"
  }'

Responses

Success

Bodyapplication/json
idstring, (uuid)

Attachment Id.

fileNamestring

Example : passport.pdf Attachment Name.

fileSizeInBytesinteger, (int64)

Size of the attachment in bytes.

documentTypestring

Document type of the attachment.

descriptionstring

Description of the attachment.

createdAtstring, (date-time)

Attachment uploaded time.

createdByIdinteger, (int32)

Attachment uploaded by user id

createdBystring

Attachment uploaded by user

modifiedAtstring, (date-time)

Attachment modified time

modifiedByIdinteger, (int32)

Attachment modified by user id

modifiedBystring

Attachment modified by user

linkedTostring or null

The profile component the attachment is linked to. Available values are profile and profileDetails.

Enum:"profile""profileDetails"null
correlationIdstring

A unique ID assigned to this request.

Response
{ "linkedTo": "profile", "id": "295e185b-53bf-4e2a-bee6-19d8a85a7fac", "fileName": "openapi-test.txt", "fileSizeInBytes": 50, "documentType": "registrationDocuments", "description": "Contract test attachment (edited)", "createdAt": "2026-11-03T14:40:11.139Z", "createdById": 100000001, "createdBy": "Jane Smith", "modifiedAt": "2026-11-03T14:40:14.322Z", "modifiedById": 100000001, "modifiedBy": "Jane Smith", "correlationId": "20a13447-ef26-4bf1-9368-d28197c3415c" }