{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artifactshare-com/json-schema/artifactshare-com-cli-edit-request-schema.json",
  "title": "CliEditRequest",
  "x-generated": "2026-11-01",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artifactshare-com-openapi.json#/components/schemas/CliEditRequest",
  "type": "object",
  "properties": {
    "retain_versions": {
      "type": [
        "integer",
        "null"
      ],
      "minimum": 1
    },
    "title": {
      "type": "string"
    },
    "visibility": {
      "type": "string",
      "enum": [
        "private",
        "workspace",
        "project",
        "link"
      ]
    },
    "link_expires_at": {
      "type": [
        "string",
        "null"
      ]
    },
    "add_emails": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "remove_emails": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "destination": {
      "oneOf": [
        {
          "const": "home"
        },
        {
          "type": "object",
          "properties": {
            "project_id": {
              "type": "string",
              "minLength": 1
            }
          },
          "required": [
            "project_id"
          ]
        }
      ]
    }
  },
  "required": []
}