---
updatedAt: 2026-02-06T00:24:43.000Z
agentTools:
  projectIndex: https://developer.greendot.com/embedded-finance/llms.txt
---

# Update a card link for a customer profile.

Update the details of a linked card for a customer profile.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "BaaS APIs",
    "description": "Green Dot BaaS Partner API",
    "version": "v1",
    "x-generated-timestamp-utc": "2026-02-05T01:14:54.4774970Z"
  },
  "paths": {
    "/programs/{programCode}/externalAccounts/customers/{customerToken}/cards/{linkId}": {
      "put": {
        "tags": [
          "ExternalAccount"
        ],
        "summary": "Update a card link for a customer profile.",
        "description": "Update the details of a linked card for a customer profile.",
        "operationId": "ExternalAccount_PUT_UpdateCardLink",
        "parameters": [
          {
            "name": "X-GD-RequestId",
            "in": "header",
            "description": "Unique request identifier (GUID).",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "programCode",
            "in": "path",
            "description": "Program code assigned to the partner.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "customerToken",
            "in": "path",
            "description": "Unique customer token.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "linkId",
            "in": "path",
            "description": "Unique link identifier.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "X-GD-CustomerType",
            "in": "header",
            "description": "Type of customer (default: External).",
            "schema": {
              "type": "string",
              "default": "external"
            }
          }
        ],
        "requestBody": {
          "description": "Card link update request payload.",
          "content": {
            "application/json-patch+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCardLinkRequest"
              }
            },
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCardLinkRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCardLinkRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateCardLinkRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Card link updated successfully.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              }
            }
          },
          "401": {
            "description": "Unauthorized"
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              }
            }
          },
          "500": {
            "description": "Internal Server Error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              }
            }
          },
          "503": {
            "description": "Service Unavailable",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UpdateLinkResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "EncryptedData": {
        "type": "object",
        "properties": {
          "version": {
            "type": "string",
            "description": "The version of the encryption algorithm used to encrypt the data (e.g., \"v1\", \"v2\").",
            "nullable": true
          },
          "ephemeralPublicKey": {
            "type": "string",
            "description": "The ephemeral public key used in the encryption process, typically for key exchange or session establishment.",
            "nullable": true
          },
          "publicKeyHash": {
            "type": "string",
            "description": "The hash of the public key used to verify the integrity and authenticity of the encryption key.",
            "nullable": true
          },
          "data": {
            "type": "string",
            "description": "The encrypted data payload, typically base64-encoded, containing the sensitive information.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a container for encrypted data used in secure data transfer operations.\r\nContains the encrypted payload and associated cryptographic metadata, including encryption version, ephemeral public key, and public key hash.\r\nUsed to securely transmit sensitive information such as user data, ensuring confidentiality and integrity during transport."
      },
      "ResponseDetail": {
        "type": "object",
        "properties": {
          "code": {
            "type": "integer",
            "description": "The primary status or error code for the response (e.g., 200 for success, 400 for validation error).",
            "format": "int32"
          },
          "subCode": {
            "type": "integer",
            "description": "An optional subcode providing more granular detail about the response or error.",
            "format": "int32",
            "nullable": true
          },
          "description": {
            "type": "string",
            "description": "A human-readable description of the response, error, or status.",
            "nullable": true
          },
          "url": {
            "type": "string",
            "description": "A URL linking to documentation or a web page with more information about the response code.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Represents a detailed status or error message for an API response.\r\nContains a code, optional subcode, human-readable description, and a URL for more information.\r\nUsed to provide granular feedback about the outcome of an operation, including success, warnings, or errors."
      },
      "UpdateCardLinkRequest": {
        "required": [
          "encryptedData",
          "salt"
        ],
        "type": "object",
        "properties": {
          "salt": {
            "type": "string",
            "description": "Unique identifier (UUID) used by the encryption endpoint. Should match the RequestId provided in the header.\r\nUsed for idempotency and encryption.",
            "example": "00000000-0000-0000-0000-000000000000"
          },
          "encryptedData": {
            "$ref": "#/components/schemas/EncryptedData"
          }
        },
        "additionalProperties": false,
        "description": "Update Card Link Request – Represents the data required to update a linked card for a customer profile in global fund transfer operations.\r\nUsed to submit encrypted card information for secure updates, supporting idempotency and partner-specific logic.\r\nInherits standard request metadata from Gd.Bos.DataTransfer.Request.RequestBase."
      },
      "UpdateLinkResponse": {
        "type": "object",
        "properties": {
          "responseDetails": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ResponseDetail"
            },
            "description": "Required: A list of response details providing status codes, descriptions, and additional information about the result of the operation.",
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "Update Link Response – Represents the response returned after updating a link (such as a card or bank account) for a customer profile in global fund transfer operations.\r\nProvides standard response metadata, including response header and response details, to indicate the outcome of the update operation.\r\nInherits standard response metadata from Gd.Bos.DataTransfer.Response.ResponseBase."
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "bearer token",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "samples-languages": [
      "csharp",
      "java",
      "python",
      "node",
      "objectivec"
    ]
  }
}
```