---
updatedAt: 2026-04-21T08:30:35.000Z
agentTools:
  projectIndex: https://modulr.readme.io/llms.txt
---

# Update share secure details

This endpoints allows updating the share secure card details

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Modulr API",
    "description": "Modulr API",
    "license": {
      "name": "© Modulr Finance",
      "url": "https://www.modulrfinance.com"
    },
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api-sandbox.modulrfinance.com/api-sandbox-token"
    }
  ],
  "security": [
    {
      "modulo_security": []
    }
  ],
  "tags": [
    {
      "name": "Share secure card details",
      "description": "Share secure card details operations"
    },
    {
      "name": "Share secure card details",
      "description": "Share secure card details operations"
    }
  ],
  "paths": {
    "/cards/{cardId}/share-secure-details/{shareSecureDetailsId}": {
      "put": {
        "tags": [
          "Share secure card details"
        ],
        "summary": "Update share secure details",
        "description": "This endpoints allows updating the share secure card details",
        "operationId": "updateShareSecureDetails",
        "parameters": [
          {
            "name": "cardId",
            "in": "path",
            "description": "The ID of the card to update share secure card details for",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "shareSecureDetailsId",
            "in": "path",
            "description": "The ID of the share secure card details to update",
            "required": true,
            "style": "simple",
            "explode": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/card.UpdateShareSecureDetailsRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "204": {
            "description": "Share secure card details successfully updated"
          },
          "400": {
            "description": "Invalid request",
            "content": {
              "*/*": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/card.MessageResponse"
                  }
                }
              }
            }
          },
          "403": {
            "description": "Invalid permissions"
          }
        },
        "security": [
          {
            "HMAC": []
          },
          {
            "TOKEN": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "card.UpdateShareSecureDetailsRequest": {
        "type": "object",
        "description": "Share secure card details request",
        "properties": {
          "noOfLinkAccesses": {
            "type": "integer",
            "format": "int64",
            "description": "Number of times token/link shared will be accessible. Cannot be smaller than existing number of accesses",
            "exclusiveMinimum": 0
          },
          "expiryDate": {
            "type": "string",
            "format": "date",
            "description": "Date of expiry of the secure card details link.Must match date format of yyyy-mm-dd and be in the future.",
            "example": "2026-01-01"
          },
          "otherDetailsToShare": {
            "type": "array",
            "description": "List of other card details to share. Will be validated against fields in card response. Will replace existing list",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "card.MessageResponse": {
        "type": "object",
        "properties": {
          "field": {
            "type": "string"
          },
          "code": {
            "type": "string",
            "enum": [
              "GENERAL",
              "BUSINESSRULE",
              "MFASTATUS",
              "MFAERROR",
              "MFATIMEOUT",
              "MFADEVICEMM",
              "MFAMESSAGEINVALID",
              "NOTFOUND",
              "DUPLICATE",
              "INVALID",
              "CONNECTION",
              "RETRY",
              "RATELIMIT",
              "PERMISSION",
              "NOTACCEPTABLE",
              "MFAVERIFICATION",
              "TOKENEXPIRED"
            ]
          },
          "errorCode": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "sourceService": {
            "type": "string"
          }
        }
      }
    },
    "securitySchemes": {
      "modulo_security": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      },
      "TOKEN": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "x-readme": {
    "proxy-enabled": false
  }
}
```