---
title: "Add Consumer Profile Attachment – Uploads an attachment to a user's consumer profile."
method: POST
path: "/programs/{programCode}/users/{userIdentifier}/uploadAttachment"
tags: ["Users"]
---

# Add Consumer Profile Attachment – Uploads an attachment to a user's consumer profile.

`POST /programs/{programCode}/users/{userIdentifier}/uploadAttachment`

Uploads an attachment to the specified user's consumer profile. The request must include the attachment data and metadata. Returns the result of the upload operation.

## Path parameters

- `programCode` string, required
- `userIdentifier` string, required

## Headers

- `X-GD-RequestId` string, required

## Request body

- UploadConsumerProfileAttachmentRequest — Represents a request to upload an attachment to a user's consumer profile. Contains the attachment type, file data, file extension, effective and expiration dates, and related identifiers. Used in the Add Consumer Profile Attachment API to associate supporting documents (such as MLA or SCRA documents) with a consumer profile for compliance or verification purposes. Inherits standard request metadata from Gd.Bos.DataTransfer.Request.RequestBase.
  - `attachmentType` 'MLADocument' | 'SCRADocument' — The type of attachment being uploaded (e.g., MLA document, SCRA document).
  - `attachment` string, byte, nullable — The binary file data of the attachment (e.g., PDF, image) to be uploaded.
  - `attachmentExtension` string, nullable — The file extension of the attachment (e.g., "pdf", "jpg", "png").
  - `effectiveDate` string, date-time, nullable — The date when the attachment becomes effective, if applicable.
  - `expirationDate` string, date-time, nullable — The date when the attachment expires, if applicable.
  - `accountIdentifier` string, nullable — The unique identifier of the account associated with the consumer profile.

## Response `200`

OK

- UploadConsumerProfileAttachmentResponse — Represents the response returned after uploading an attachment to a consumer profile. Inherits standard response metadata and details from Gd.Bos.DataTransfer.Response.ResponseBase. Contains the response header and a list of response details describing the outcome of the upload operation, including status codes and messages. Used to confirm the result of a consumer profile attachment upload and provide any relevant status or error information.
  - `responseDetails` ResponseDetail[], nullable — Required: A list of response details providing status codes, descriptions, and additional information about the result of the operation.
    - `code` integer — The primary status or error code for the response (e.g., 200 for success, 400 for validation error).
    - `subCode` integer, nullable — An optional subcode providing more granular detail about the response or error.
    - `description` string, nullable — A human-readable description of the response, error, or status.
    - `url` string, nullable — A URL linking to documentation or a web page with more information about the response code.

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/greendot/apis/baas-apis.md) · [All operations](https://skmtc.net/greendot/apis/baas-apis/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/greendot/baas-apis/versions/666553766b78/schema)
