{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/signicat/main/json-schema/signicat-update-share-dto-schema.json",
  "title": "UpdateShareDto",
  "x-generated": "2026-10-18",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/signicat-secure-share-openapi.yml#/components/schemas/UpdateShareDto",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "title": {
      "type": [
        "string",
        "null"
      ],
      "description": "Title of the share"
    },
    "description": {
      "type": [
        "string",
        "null"
      ],
      "description": "Description of what this share contains"
    },
    "contactDetails": {
      "nullable": true,
      "oneOf": [
        {
          "$ref": "#/$defs/UpdateContactDetailsDto"
        }
      ]
    },
    "expires": {
      "type": [
        "string",
        "null"
      ],
      "description": "Expire date for this share, after that you and your recipients can't access the share anymore",
      "format": "date-time"
    }
  },
  "$defs": {
    "SenderNotificationDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "sendEmail": {
          "type": "boolean"
        },
        "sendSms": {
          "type": "boolean"
        }
      }
    },
    "UpdateContactDetailsDto": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "email": {
          "type": [
            "string",
            "null"
          ],
          "format": "email",
          "pattern": "^[^@]+@[^@]+$"
        },
        "name": {
          "type": [
            "string",
            "null"
          ]
        },
        "mobile": {
          "type": [
            "string",
            "null"
          ]
        },
        "notificationOptions": {
          "nullable": true,
          "oneOf": [
            {
              "$ref": "#/$defs/SenderNotificationDto"
            }
          ]
        }
      }
    }
  }
}