{
  "openapi": "3.1.0",
  "info": {
    "title": "FossilVault personal specimen API",
    "version": "1.0.1",
    "description": "Read an owned specimen, list the collection, create a specimen, or add an image to one. Read permission specimens:read is mandatory; specimens:read:financial additionally reveals acquisition.price, valuation and disposition.price; the opt-in specimens:write permits POST /v1/specimens and POST /v1/specimens/{specimenId}/images. Notes and existing bearer media URLs remain visible. No OAuth, conditional reads, CORS, updates, image removal or deletes. HTTPS only. Requests are strict: unknown request members are rejected. Tolerant reader: clients must ignore response fields they do not know and treat every response enum (x-extensible-enum) as open; new optional fields, groups and enum values are added within v1, so the published response schemas do not forbid additional properties. Renames, removals and changed meanings require a new major version."
  },
  "servers": [
    {
      "url": "https://api.fossilvault.app",
      "description": "Production"
    }
  ],
  "paths": {
    "/v1/specimens": {
      "get": {
        "operationId": "listSpecimens",
        "summary": "List owned specimens in descending creation date and document ID order",
        "security": [
          {
            "PersonalToken": []
          }
        ],
        "x-required-permissions": [
          "specimens:read"
        ],
        "description": "One shared account admission per page. Includes private, public and disposed records. Specimens without a creation date are omitted. Returned malformed records fail the affected request. Financial fields are excluded under every permission. Collections can change during traversal. The 2 MiB response bound may shorten a page. Resume after the last returned row using its signed 24-hour continuation, even if the row is deleted. Each summary has id, category, createdAt, an optional specimenName (the custom name, as in detail) and an optional catalogNumber. A fossil lists every entry of fossils in order, each with only scientificName (derived from the most specific named taxonomy rank, omitted when unknown) and descriptiveName when stored; neither field is required, and fossil IDs are detail-only. A mineral, gemstone or rock has materialName when its material.name is nonblank.",
        "parameters": [
          {
            "in": "query",
            "name": "limit",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "in": "query",
            "name": "cursor",
            "schema": {
              "type": "string",
              "maxLength": 2048
            },
            "description": "Bound to environment, account incarnation, representation and page size."
          }
        ],
        "responses": {
          "200": {
            "description": "Compact summaries and a continuation, or null on the final page.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SpecimenPage"
                },
                "examples": {
                  "mixed": {
                    "value": {
                      "specimens": [
                        {
                          "id": "fossil-current",
                          "createdAt": "2026-03-02T18:21:07.412Z",
                          "category": "fossil",
                          "catalogNumber": "FV-42",
                          "fossils": [
                            {
                              "scientificName": "Otodus megalodon",
                              "descriptiveName": "Peace River meg"
                            },
                            {}
                          ]
                        },
                        {
                          "id": "mineral-current",
                          "createdAt": "2026-03-02T18:21:07.412Z",
                          "category": "mineral",
                          "materialName": "Quartz"
                        },
                        {
                          "id": "gemstone-current",
                          "createdAt": "2026-03-02T18:21:07.412Z",
                          "category": "gemstone",
                          "materialName": "Beryl"
                        },
                        {
                          "id": "rock-current",
                          "createdAt": "2026-03-02T18:21:07.412Z",
                          "category": "rock",
                          "materialName": "Granite"
                        }
                      ],
                      "nextCursor": null,
                      "hasMore": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request (including a non-HTTPS request, a body, an Authorization header over 512 bytes, or an unknown or repeated query parameter), invalid_cursor",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: missing, malformed, unknown, expired or revoked personal token. A request that also sends a Cookie or X-Firebase-AppCheck header is rejected the same way.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "const": "Bearer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "account_unavailable, api_access_disabled",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "method_not_allowed: another method on this path; Allow lists the supported ones",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "GET on a specimen; GET, POST on the collection; POST on a specimen's images."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "414": {
            "description": "uri_too_long",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (account allowance; limitWindow minute, day or both) or edge_rate_limited (approximate per-client and per-token flood protection before admission; Retry-After 60, no limitWindow, no allowance consumed)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "stored_data_invalid",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "dependency_unavailable, policy_unavailable, unsupported_account_protocol. Retry with backoff.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      },
      "post": {
        "operationId": "createSpecimen",
        "summary": "Create a private specimen",
        "security": [
          {
            "PersonalToken": []
          }
        ],
        "x-required-permissions": [
          "specimens:read",
          "specimens:write"
        ],
        "description": "Creates one private specimen without images from the representation shape minus server-owned members: id, createdAt, images, isPublic, shareUrl, disposition, listing, fossils[].id and fossils[].scientificName are rejected (read_only). category is required; a fossil requires fossils (1–64 entries) and rejects form, root dimensions and material; a mineral, gemstone or rock requires material.name and rejects fossils and matrixDimensions; material.rock is rock-only and material.gemstone gemstone-only; mass uses ct only for gemstones. Taxonomy ranks take {name, author?}. fossils[].descriptiveName is accepted. specimenName (custom name) is accepted on every category: it is trimmed, a blank or null value is omitted, and more than 120 UTF-16 code units after trimming is rejected as too_long at /specimenName, never truncated; a non-string is invalid_type. tags are trimmed, lowercased and deduplicated, at most 5. catalogNumber is unique per owner ignoring case, best effort: two concurrent creates with the same number can both succeed. Defaults: tags [], isFavorite false, private, no images; add images afterwards with POST /v1/specimens/{specimenId}/images. Body at most 128 KiB of application/json. Idempotency-Key is required. A same-key, same-body retry returns 201 for the same specimen with Idempotent-Replayed: true; a same-key, different-body request returns 409 idempotency_conflict; a replay whose specimen was deleted returns 410 specimen_gone. Keys are scoped to the token: a retry with another token creates another specimen. Retry timeouts, 5xx responses and other unknown outcomes with the same key and body: the retry either replays the create or performs it. Only a committed create uses a key, so a rejected request can be sent again with the same key. Each create counts against the shared account allowance and the daily create budget (Free 50, other tiers 500 per UTC day); every admitted POST without an existing create for its key is charged, including validation failures, while replays and idempotency conflicts are not charged to the daily create budget. New creates also respect the tier's specimen limit (Free 50 today). The tier comes from unexpired subscription grants; missing or unusable subscription state uses the Free limits. Financial fields in a create response show the values of your request: without specimens:read:financial the response shows only the acquisition.price and valuation the request sent, with the request's normalized values; with it, the stored values are shown as in a read. A replay returns the specimen as it is now, filtered the same way.",
        "parameters": [
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "description": "Canonical lowercase UUID, new for each specimen."
          },
          {
            "in": "header",
            "name": "X-FossilVault-Features",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "descriptive-name"
              ]
            },
            "description": "Include fossils[].descriptiveName in the response, as in detail."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SpecimenCreateV1"
              },
              "examples": {
                "fossil": {
                  "value": {
                    "category": "fossil",
                    "catalogNumber": "FV-42",
                    "fossils": [
                      {
                        "taxonomy": {
                          "genus": {
                            "name": "Otodus"
                          },
                          "species": {
                            "name": "megalodon",
                            "author": "Agassiz, 1835"
                          }
                        },
                        "element": "tooth",
                        "dimensions": {
                          "length": 11.2,
                          "unit": "cm"
                        }
                      }
                    ],
                    "geology": {
                      "period": "neogene",
                      "formation": "Bone Valley"
                    },
                    "locality": {
                      "name": "Peace River",
                      "country": "US"
                    },
                    "collectedDate": "2025-02",
                    "acquisition": {
                      "method": "found"
                    },
                    "tags": [
                      "sharks"
                    ]
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Created, or replayed for the same key and body. The body is the stored specimen, filtered by the token's permissions as described above.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "/v1/specimens/{specimenId}"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "const": "true"
                },
                "description": "Present only on a replay."
              },
              "X-FossilVault-Features": {
                "schema": {
                  "const": "descriptive-name"
                },
                "description": "Echoed when the request asked for descriptive-name."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "specimen"
                  ],
                  "properties": {
                    "specimen": {
                      "$ref": "#/components/schemas/PublicSpecimenV1"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request (a query parameter, a body that is not JSON, an Authorization header over 512 bytes, or a non-HTTPS request), invalid_idempotency_key (missing or not a canonical lowercase UUID)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: missing, malformed, unknown, expired or revoked personal token. A request that also sends a Cookie or X-Firebase-AppCheck header is rejected the same way.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "const": "Bearer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "account_unavailable, api_access_disabled, insufficient_scope (the token lacks specimens:write; nothing is charged), writes_disabled, unsupported_account_protocol (the account's write protocol does not allow this writer; permanent for the account, while reads return 503 for the same code)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "method_not_allowed: another method on this path; Allow lists the supported ones",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "GET on a specimen; GET, POST on the collection; POST on a specimen's images."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "idempotency_conflict, specimen_limit_reached, catalog_number_conflict",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                },
                "description": "Sent with request_timeout and operation_in_progress."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "410": {
            "description": "specimen_gone: a replay whose specimen was deleted",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "payload_too_large: body over 128 KiB",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "414": {
            "description": "uri_too_long",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: Content-Type is not application/json",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "validation_failed, with errors[] of public JSON pointers",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "write_rate_limited (daily create budget; limitWindow day, Retry-After to the next UTC midnight; no shared allowance consumed), rate_limited (account allowance; limitWindow minute, day or both) or edge_rate_limited (flood protection before admission; Retry-After 60)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "stored_data_invalid",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "dependency_unavailable, policy_unavailable. Retry with the same key and body.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/specimens/{specimenId}": {
      "get": {
        "operationId": "getSpecimen",
        "summary": "Read an owned specimen",
        "security": [
          {
            "PersonalToken": []
          }
        ],
        "x-required-permissions": [
          "specimens:read"
        ],
        "description": "No query parameters or body. At most 8 KiB path/query, 512-byte Authorization header, 1 MiB response. Initial account-wide allowance: 30/rolling 60 seconds and 5,000/UTC day. Invalid/auth/policy/429 requests do not consume allowance; admitted failures do. Foreign and absent records both return 404. Optional fields and empty groups are omitted, never manufactured. createdAt is an RFC 3339 UTC instant with stored fractional precision. disposition.date is returned as stored: app-written values are RFC 3339 instants whose time of day carries no meaning, so format them in the owner's time zone to get the day the app shows. collectedDate and acquisition.date are ISO 8601 reduced-precision partial dates (YYYY, YYYY-MM or YYYY-MM-DD); material.gemstone.report.date is YYYY-MM-DD. Each images entry contains url and, when the stored image has a path, id: the stable gallery ID (img_ followed by 64 hex digits) that an image upload returns for the same image. Each disposition.images entry contains only url. A fossil has fossils (every entry, in presentation order) with an opaque read-only id, a derived scientificName (as in lists), descriptiveName only when the request sends X-FossilVault-Features: descriptive-name, taxonomy keyed by rank name (kingdom, phylum, subphylum, class, subclass, superorder, order, infraorder, suborder, superfamily, family, subfamily, genus, subgenus, species) with {name, author?} per named rank ({} means unidentified), element, dimensions and notes. Size, weight and prices are groups: dimensions and matrixDimensions {length?, width?, height?, unit} with at least one positive side (root dimensions is non-fossil only), mass {value, unit}, acquisition.price and valuation {amount, currency}. Length units are mm, cm, in and ft; mass units are g, kg, lb and ct. Root dimensions, mass, acquisition.price and valuation resolve from either stored format; legacy values default to mm and g, a gemstone weight to ct, and malformed stored values of these four read as absent. A malformed stored matrixDimensions or fossils[].dimensions (non-map, non-numeric side, unsupported unit, or a fossil entry size without a positive side) also reads as absent. In acquisition.price and valuation, currency is a supported code, or null when a legacy stored price has no currency or the stored code is unsupported; it is never invented, and a current-format stored price without a three-letter currency is ignored. disposition.price is {amount, currency} with a supported currency; a stored disposition price without a numeric amount and a supported currency reads as absent, and a stored price never fails the request. material has name and shared mineral properties at its top level, with rock and gemstone subgroups; stored values that no longer fit the category are still returned. geology groups era, period, epoch, age (the ICS geochronologic unit, not how old the specimen is) and formation. locality has name, country and coordinates {latitude, longitude, uncertaintyMeters?}, where an absent uncertaintyMeters means an exact point. Every category carries specimenName, the collector's custom name for the specimen, when it has one: trimmed plain text of 1 to 120 UTF-16 code units, never markup; a blank, over-long or non-string stored value reads as absent and never fails the request. No category returns root element. Mineral, rock and gemstone carry form when they have one: a lowercase preset token (rough, crystal, cluster, point, geode, matrix, tumbled, polished, slab, sphere, palm-stone, tower, freeform, carving, cabochon, faceted, hand-sample; localize it, and show an unknown token as text) or verbatim free text of at most 120 UTF-16 code units. Placeholders such as Custom or a category name read as no form, and a malformed stored form never fails the request. Without specimens:read:financial, acquisition.price, valuation and disposition.price are removed, and an acquisition left empty is omitted.",
        "parameters": [
          {
            "in": "header",
            "name": "X-FossilVault-Features",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "descriptive-name"
              ]
            },
            "description": "Include optional per-fossil descriptiveName in detail. Lists always include it."
          },
          {
            "name": "specimenId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 150
            },
            "description": "Opaque actual ID; one decoded segment, no slash, backslash, controls, or exact dot/dot-dot."
          }
        ],
        "responses": {
          "200": {
            "description": "Known-field specimen, filtered by token permissions",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-FossilVault-Features": {
                "schema": {
                  "const": "descriptive-name"
                },
                "description": "Echoed when the request asked for descriptive-name."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "specimen"
                  ],
                  "properties": {
                    "specimen": {
                      "$ref": "#/components/schemas/PublicSpecimenV1"
                    }
                  }
                },
                "examples": {
                  "fossil": {
                    "summary": "Base permission, requested with X-FossilVault-Features: descriptive-name",
                    "description": "fossils[].descriptiveName is present because the request sent X-FossilVault-Features: descriptive-name; a request without that header omits it. Financial fields are omitted under specimens:read.",
                    "value": {
                      "specimen": {
                        "id": "fossil-current",
                        "category": "fossil",
                        "createdAt": "2026-03-02T18:21:07.412Z",
                        "fossils": [
                          {
                            "id": "c-81a2",
                            "scientificName": "Otodus megalodon",
                            "descriptiveName": "Peace River meg",
                            "taxonomy": {
                              "kingdom": {
                                "name": "Animalia"
                              },
                              "phylum": {
                                "name": "Chordata"
                              },
                              "subphylum": {
                                "name": "Vertebrata"
                              },
                              "class": {
                                "name": "Chondrichthyes",
                                "author": "Huxley, 1880"
                              },
                              "subclass": {
                                "name": "Elasmobranchii"
                              },
                              "superorder": {
                                "name": "Galeomorphii"
                              },
                              "order": {
                                "name": "Lamniformes"
                              },
                              "family": {
                                "name": "Otodontidae"
                              },
                              "genus": {
                                "name": "Otodus",
                                "author": "Agassiz, 1843"
                              },
                              "species": {
                                "name": "megalodon",
                                "author": "Agassiz, 1835"
                              }
                            },
                            "element": "tooth",
                            "dimensions": {
                              "length": 4.4,
                              "width": 3.1,
                              "unit": "in"
                            },
                            "notes": "Root intact."
                          },
                          {
                            "id": "c-unidentified",
                            "taxonomy": {},
                            "dimensions": {
                              "length": 12,
                              "unit": "mm"
                            }
                          }
                        ],
                        "matrixDimensions": {
                          "length": 10,
                          "width": 8,
                          "unit": "cm"
                        },
                        "mass": {
                          "value": 180,
                          "unit": "g"
                        },
                        "geology": {
                          "era": "cenozoic",
                          "period": "neogene",
                          "epoch": "miocene",
                          "formation": "Bone Valley"
                        },
                        "locality": {
                          "name": "Peace River",
                          "country": "US",
                          "coordinates": {
                            "latitude": 27.4,
                            "longitude": -81.8,
                            "uncertaintyMeters": 250
                          }
                        },
                        "collectedDate": "2025-02",
                        "acquisition": {
                          "date": "2025-02-14",
                          "method": "purchased",
                          "source": "Show dealer"
                        },
                        "disposition": {
                          "status": "sold",
                          "date": "2026-04-01T20:00:00Z",
                          "recipient": "A. Buyer",
                          "notes": "Shipped.",
                          "images": [
                            {
                              "url": "https://example.invalid/receipt.jpg"
                            }
                          ]
                        },
                        "condition": "Excellent",
                        "catalogNumber": "FV-42",
                        "notes": "Paid 300; keep this note.",
                        "storage": {
                          "room": "Study",
                          "cabinet": "B",
                          "drawer": "3"
                        },
                        "tags": [
                          "sharks",
                          "florida"
                        ],
                        "isFavorite": true,
                        "isPublic": true,
                        "shareUrl": "https://example.invalid/s/fossil-current",
                        "images": [
                          {
                            "url": "https://example.invalid/a.jpg?token=fixture"
                          }
                        ]
                      }
                    }
                  },
                  "mineral": {
                    "summary": "Base permission",
                    "description": "Financial fields are omitted under specimens:read.",
                    "value": {
                      "specimen": {
                        "id": "mineral-current",
                        "category": "mineral",
                        "createdAt": "2026-03-02T18:21:07.412Z",
                        "form": "cluster",
                        "material": {
                          "name": "Quartz",
                          "group": "Silicates",
                          "variety": "Amethyst",
                          "color": "Purple",
                          "chemicalFormula": "SiO2",
                          "crystalHabit": "Prismatic",
                          "crystalSystem": "Trigonal",
                          "mohsHardness": 7,
                          "specificGravity": 2.65,
                          "luster": "Vitreous",
                          "streak": "White",
                          "transparency": "Transparent",
                          "cleavage": "None",
                          "fracture": "Conchoidal"
                        },
                        "dimensions": {
                          "length": 3,
                          "width": 2,
                          "height": 1.5,
                          "unit": "in"
                        },
                        "matrixDimensions": {
                          "length": 5,
                          "unit": "in"
                        },
                        "mass": {
                          "value": 340,
                          "unit": "g"
                        },
                        "locality": {
                          "name": "Artigas",
                          "country": "UY"
                        },
                        "acquisition": {
                          "date": "2023"
                        },
                        "tags": [],
                        "isFavorite": false,
                        "isPublic": false,
                        "images": []
                      }
                    }
                  },
                  "gemstone": {
                    "summary": "Base permission",
                    "description": "Financial fields are omitted under specimens:read.",
                    "value": {
                      "specimen": {
                        "id": "gemstone-current",
                        "category": "gemstone",
                        "createdAt": "2026-03-02T18:21:07.412Z",
                        "form": "faceted",
                        "material": {
                          "name": "Beryl",
                          "variety": "Emerald",
                          "color": "Green",
                          "mohsHardness": 7.5,
                          "transparency": "Transparent",
                          "gemstone": {
                            "cut": "Emerald cut",
                            "clarity": "VS",
                            "shape": "Octagon",
                            "growthOrigin": "natural",
                            "treatment": "Oil",
                            "report": {
                              "lab": "GIA",
                              "number": "123456",
                              "date": "2025-04-02",
                              "origin": "Colombia"
                            }
                          }
                        },
                        "dimensions": {
                          "length": 7,
                          "width": 5,
                          "height": 3,
                          "unit": "mm"
                        },
                        "mass": {
                          "value": 1.25,
                          "unit": "ct"
                        },
                        "disposition": {
                          "status": "gifted",
                          "recipient": "Sam",
                          "images": []
                        },
                        "tags": [],
                        "isFavorite": false,
                        "isPublic": false,
                        "images": []
                      }
                    }
                  },
                  "rock": {
                    "summary": "Base permission",
                    "description": "Financial fields are omitted under specimens:read.",
                    "value": {
                      "specimen": {
                        "id": "rock-current",
                        "category": "rock",
                        "createdAt": "2026-03-02T18:21:07.412Z",
                        "form": "Polished hand sample",
                        "material": {
                          "name": "Granite",
                          "color": "Pink",
                          "rock": {
                            "type": "igneous",
                            "grainSize": "Coarse",
                            "composition": "Quartz, feldspar",
                            "texture": "Phaneritic",
                            "structure": "Massive",
                            "color": "Pink-grey",
                            "igneous": {
                              "environment": "intrusive",
                              "composition": "felsic"
                            },
                            "sedimentary": {
                              "category": "clastic",
                              "sorting": "Poor",
                              "rounding": "Angular",
                              "fossilContent": "None"
                            },
                            "metamorphic": {
                              "foliation": "None",
                              "protolith": "n/a",
                              "grade": "Low"
                            }
                          }
                        },
                        "dimensions": {
                          "length": 1,
                          "unit": "ft"
                        },
                        "mass": {
                          "value": 2,
                          "unit": "lb"
                        },
                        "geology": {
                          "era": "paleozoic",
                          "period": "devonian",
                          "formation": "Shap"
                        },
                        "tags": [],
                        "isFavorite": false,
                        "isPublic": false,
                        "images": []
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request: an invalid ID (too long, backslash, control characters), any query parameter, a body, an Authorization header over 512 bytes, or a non-HTTPS request",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: missing, malformed, unknown, expired or revoked personal token. A request that also sends a Cookie or X-Firebase-AppCheck header is rejected the same way.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "const": "Bearer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "account_unavailable, api_access_disabled",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "not_found: absent or foreign specimen. A path whose ID contains an encoded slash or is exactly . or .. does not name a specimen and also returns 404. An ID of the form Firestore reserves (__name__) can never name a specimen and returns the same admitted 404 as an absent ID.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "method_not_allowed: another method on this path; Allow lists the supported ones",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "GET on a specimen; GET, POST on the collection; POST on a specimen's images."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "414": {
            "description": "uri_too_long",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "rate_limited (account allowance; limitWindow minute, day or both) or edge_rate_limited (approximate per-client and per-token flood protection before admission; Retry-After 60, no limitWindow, no allowance consumed)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "stored_data_invalid",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "dependency_unavailable, policy_unavailable, unsupported_account_protocol. Retry with backoff.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    },
    "/v1/specimens/{specimenId}/images": {
      "post": {
        "operationId": "addSpecimenImage",
        "summary": "Add one image to an owned specimen",
        "security": [
          {
            "PersonalToken": []
          }
        ],
        "x-required-permissions": [
          "specimens:read",
          "specimens:write"
        ],
        "description": "Appends one image to any specimen the account owns, as the raw request body: JPEG, PNG or HEIC with a heic or heix brand, exactly as stored (no multipart, base64 or remote URL; EXIF, GPS and orientation are kept). No query parameters. Content-Length is required and Repr-Digest (RFC 9530) with sha-256 is required; from a shell: openssl dgst -sha256 -binary photo.jpg | base64. The image must not exceed the tier's byte limit (Free 2 MiB, Pro and Lifetime 6 MiB, Max 20 MiB) or 40 MiB for any tier; resize before uploading. There is no tier limit on pixel dimensions, but an image wider or taller than 32,768 pixels or above 100 megapixels, or a HEIC whose meta box exceeds 1 MiB, is 422 image_invalid. A specimen holds at most the tier's photos per specimen (Free 5, Pro and Lifetime 10, Max 20, Admin 30) for a new upload; galleries already above it are untouched. The whole body must arrive within 120 seconds. Length, digest and format are checked before the image is stored, so a failed body never becomes an image. The image appears in the specimen's images immediately; its thumbnail follows asynchronously. Adding an image to a public specimen publishes it with the specimen. Idempotency-Key is required and scoped to the token: a same-key retry with the same headers and bytes returns 201 with an identical body and Idempotent-Replayed: true, even after later edits; a different request under the key returns 409 idempotency_conflict; a replay whose specimen was deleted returns 410 specimen_gone. Retry timeouts, 202, 408, 409 operation_in_progress and 5xx other than recovery_required with the same key, headers and bytes; a new key uploads a second copy. On a key's first request, a refusal before the upload started (403, 404, 409 photo_limit_reached or public_gallery_unsupported, 413, 429) stores nothing. Once an attempt has started, a 400 or 422 about the body is stored for the key, and so is a later 403, 404, 409 photo_limit_reached or public_gallery_unsupported, 410 or 500 found for that key: correct the request and use a new key. A key allows three attempts; an interrupted upload is abandoned after 24 hours (410 operation_expired). Each upload counts against the shared account allowance and the daily write budget shared with creates (Free 50, other tiers 500 per UTC day); replays and idempotency conflicts are not charged to the write budget. The tier comes from unexpired subscription grants; missing or unusable subscription state uses the Free limits. Clients that need the specimen read it with GET /v1/specimens/{specimenId}.",
        "parameters": [
          {
            "name": "specimenId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 150
            },
            "description": "Opaque actual ID; one decoded segment, no slash, backslash, controls, or exact dot/dot-dot."
          },
          {
            "in": "header",
            "name": "Idempotency-Key",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$"
            },
            "description": "Canonical lowercase UUID, new for each image."
          },
          {
            "in": "header",
            "name": "Content-Length",
            "required": true,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 41943040
            }
          },
          {
            "in": "header",
            "name": "Repr-Digest",
            "required": true,
            "schema": {
              "type": "string",
              "pattern": "^sha-256=:[A-Za-z0-9+/]{43}=:$"
            },
            "description": "RFC 9530 sha-256 digest of the body, base64 between colons. The only accepted digest header."
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "image/jpeg": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/png": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "image/heic": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Added, or replayed for the same key and request. Both members come from the stored upload, so a replay is identical.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "Location": {
                "schema": {
                  "type": "string"
                },
                "description": "/v1/specimens/{specimenId}"
              },
              "Idempotent-Replayed": {
                "schema": {
                  "const": "true"
                },
                "description": "Present only on a replay."
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "specimenId",
                    "image"
                  ],
                  "properties": {
                    "specimenId": {
                      "type": "string"
                    },
                    "image": {
                      "type": "object",
                      "required": [
                        "id",
                        "url"
                      ],
                      "properties": {
                        "id": {
                          "type": "string",
                          "pattern": "^img_[a-f0-9]{64}$",
                          "description": "Stable gallery ID, also returned as images[].id by detail reads."
                        },
                        "url": {
                          "type": "string",
                          "description": "Download URL: a bearer capability like the image URLs reads return."
                        }
                      }
                    }
                  }
                },
                "example": {
                  "specimenId": "1dca849e-6a1b-4b8e-9d0e-3f2a7c5b9e10",
                  "image": {
                    "id": "img_0000000000000000000000000000000000000000000000000000000000000000",
                    "url": "https://firebasestorage.googleapis.com/v0/b/example/o/specimen%2Fowner%2Fimage.jpg?alt=media&token=example"
                  }
                }
              }
            }
          },
          "202": {
            "description": "operation_pending: the image was verified but whether it was attached is not yet known. Retry with the same key, headers and bytes after Retry-After; the body is not read again.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds."
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "specimenId",
                    "status",
                    "retryAfterSeconds"
                  ],
                  "properties": {
                    "specimenId": {
                      "type": "string"
                    },
                    "status": {
                      "const": "operation_pending"
                    },
                    "retryAfterSeconds": {
                      "type": "integer",
                      "minimum": 1
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "invalid_request (a query parameter, an invalid ID, a Content-Length that is not a positive decimal integer without leading zeros, a missing body, a body whose length differs from Content-Length, an Authorization header over 512 bytes, or a non-HTTPS request), invalid_idempotency_key, invalid_digest (Repr-Digest missing, malformed or not sha-256)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "401": {
            "description": "unauthorized: missing, malformed, unknown, expired or revoked personal token. A request that also sends a Cookie or X-Firebase-AppCheck header is rejected the same way.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "WWW-Authenticate": {
                "schema": {
                  "const": "Bearer"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "403": {
            "description": "account_unavailable, api_access_disabled, insufficient_scope (the token lacks specimens:write; nothing is charged), writes_disabled, unsupported_account_protocol",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "404": {
            "description": "not_found: absent or foreign specimen, or an ID of the form Firestore reserves (admitted and charged)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "405": {
            "description": "method_not_allowed: another method on this path; Allow lists the supported ones",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Allow": {
                "schema": {
                  "type": "string"
                },
                "description": "GET on a specimen; GET, POST on the collection; POST on a specimen's images."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "408": {
            "description": "request_timeout: the body did not arrive within 120 seconds. Retry with the same key once Retry-After has passed.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                },
                "description": "Sent with request_timeout and operation_in_progress."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "409": {
            "description": "idempotency_conflict, photo_limit_reached, public_gallery_unsupported (a public specimen whose gallery cannot be published), operation_in_progress (another attempt with this key holds it, including one whose connection dropped; Retry-After)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                },
                "description": "Sent with request_timeout and operation_in_progress."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "410": {
            "description": "specimen_gone (a replay whose specimen was deleted), operation_expired (an interrupted upload abandoned after 24 hours; upload again with a new key)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "411": {
            "description": "length_required: Content-Length is missing",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "413": {
            "description": "image_too_large, with limitBytes: above 40 MiB (before admission) or above the tier's byte limit",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "414": {
            "description": "uri_too_long",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "415": {
            "description": "unsupported_media_type: Content-Type is not image/jpeg, image/png or image/heic",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "422": {
            "description": "image_digest_mismatch (the body does not match Repr-Digest), image_invalid (not a valid image of the declared type, or a HEIC meta box over 1 MiB)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "429": {
            "description": "write_rate_limited (daily write budget shared with creates; limitWindow day), rate_limited (account allowance) or edge_rate_limited (flood protection before admission; Retry-After 60)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "Retry-After": {
                "schema": {
                  "type": "integer",
                  "minimum": 1
                }
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "500": {
            "description": "stored_data_invalid (for example a stored gallery entry without a storage path)",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          },
          "503": {
            "description": "dependency_unavailable, policy_unavailable: retry with the same key, headers and bytes. recovery_required: the key is exhausted (three attempts) or held for an operator; upload again with a new key.",
            "headers": {
              "Cache-Control": {
                "schema": {
                  "const": "no-store, no-transform"
                }
              },
              "X-Content-Type-Options": {
                "schema": {
                  "const": "nosniff"
                }
              },
              "X-Request-Id": {
                "schema": {
                  "type": "string",
                  "format": "uuid"
                }
              },
              "X-RateLimit-Minute-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Minute-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Limit": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Remaining": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              },
              "X-RateLimit-Day-Reset": {
                "schema": {
                  "type": "integer",
                  "minimum": 0
                },
                "description": "Admission snapshot; concurrent requests can make this stale. Day-Reset is next UTC midnight in Unix seconds. Sent only when the request was admitted before it failed."
              }
            },
            "content": {
              "application/problem+json": {
                "schema": {
                  "$ref": "#/components/schemas/Problem"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "PersonalToken": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "fvpat_v1",
        "description": "Opaque personal token; application permissions are not OAuth scopes."
      }
    },
    "schemas": {
      "SpecimenPage": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "specimens": {
            "maxItems": 100,
            "type": "array",
            "items": {
              "anyOf": [
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "specimenName": {
                      "description": "Custom name, any category, as in detail; omitted when there is none.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "catalogNumber": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "category": {
                      "type": "string",
                      "const": "fossil"
                    },
                    "fossils": {
                      "minItems": 1,
                      "maxItems": 64,
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "scientificName": {
                            "description": "Derived from the most specific named taxonomy rank, as in detail; omitted when unknown.",
                            "type": "string",
                            "maxLength": 256,
                            "pattern": "\\S"
                          },
                          "descriptiveName": {
                            "description": "Collector-authored fossil name",
                            "type": "string",
                            "maxLength": 256,
                            "pattern": "\\S"
                          }
                        }
                      }
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "category",
                    "fossils"
                  ]
                },
                {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 150
                    },
                    "createdAt": {
                      "type": "string",
                      "format": "date-time",
                      "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"
                    },
                    "specimenName": {
                      "description": "Custom name, any category, as in detail; omitted when there is none.",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 120
                    },
                    "catalogNumber": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 256
                    },
                    "category": {
                      "type": "string",
                      "x-extensible-enum": [
                        "mineral",
                        "gemstone",
                        "rock"
                      ],
                      "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                    },
                    "materialName": {
                      "description": "Detail material.name when nonblank",
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 4096
                    }
                  },
                  "required": [
                    "id",
                    "createdAt",
                    "category"
                  ]
                }
              ]
            }
          },
          "nextCursor": {
            "anyOf": [
              {
                "type": "string",
                "maxLength": 2048
              },
              {
                "type": "null"
              }
            ]
          },
          "hasMore": {
            "type": "boolean"
          }
        },
        "required": [
          "specimens",
          "nextCursor",
          "hasMore"
        ]
      },
      "PublicSpecimenV1": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "maxLength": 4096
          },
          "category": {
            "type": "string",
            "x-extensible-enum": [
              "fossil",
              "mineral",
              "gemstone",
              "rock"
            ],
            "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
          },
          "createdAt": {
            "type": "string",
            "description": "RFC 3339 UTC timestamp; stored fractional precision is kept."
          },
          "specimenName": {
            "description": "Custom name, any category: trimmed plain text of 1 to 120 UTF-16 code units, omitted when there is none. Plain text, never markup.",
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "fossils": {
            "minItems": 1,
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "maxLength": 4096,
                  "description": "Opaque, read-only fossil identifier."
                },
                "scientificName": {
                  "description": "Derived from the most specific named taxonomy rank, as in lists; omitted when unknown.",
                  "type": "string",
                  "maxLength": 256
                },
                "descriptiveName": {
                  "type": "string"
                },
                "taxonomy": {
                  "type": "object",
                  "properties": {
                    "kingdom": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "phylum": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "subphylum": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "class": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "subclass": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "superorder": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "order": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "infraorder": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "suborder": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "superfamily": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "family": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "subfamily": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "genus": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "subgenus": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    },
                    "species": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string",
                          "maxLength": 4096
                        },
                        "author": {
                          "type": "string",
                          "maxLength": 4096
                        }
                      },
                      "required": [
                        "name"
                      ]
                    }
                  },
                  "description": "Present ranks by rank name; {} means unidentified."
                },
                "element": {
                  "type": "string",
                  "maxLength": 4096
                },
                "dimensions": {
                  "type": "object",
                  "properties": {
                    "length": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "width": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "height": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "unit": {
                      "type": "string",
                      "x-extensible-enum": [
                        "mm",
                        "cm",
                        "in",
                        "ft"
                      ],
                      "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                    }
                  },
                  "required": [
                    "unit"
                  ]
                },
                "notes": {
                  "type": "string"
                }
              },
              "required": [
                "id",
                "taxonomy"
              ]
            }
          },
          "form": {
            "description": "Non-fossils only: a lowercase preset token or free text.",
            "type": "string",
            "minLength": 1,
            "maxLength": 120
          },
          "material": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 4096
              },
              "group": {
                "type": "string",
                "maxLength": 4096
              },
              "variety": {
                "type": "string",
                "maxLength": 4096
              },
              "color": {
                "type": "string",
                "maxLength": 4096
              },
              "chemicalFormula": {
                "type": "string",
                "maxLength": 4096
              },
              "crystalHabit": {
                "type": "string",
                "maxLength": 4096
              },
              "crystalSystem": {
                "type": "string",
                "maxLength": 4096
              },
              "mohsHardness": {
                "type": "number"
              },
              "specificGravity": {
                "type": "number"
              },
              "luster": {
                "type": "string",
                "maxLength": 4096
              },
              "streak": {
                "type": "string",
                "maxLength": 4096
              },
              "transparency": {
                "type": "string",
                "maxLength": 4096
              },
              "cleavage": {
                "type": "string",
                "maxLength": 4096
              },
              "fracture": {
                "type": "string",
                "maxLength": 4096
              },
              "rock": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "x-extensible-enum": [
                      "igneous",
                      "sedimentary",
                      "metamorphic"
                    ],
                    "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                  },
                  "grainSize": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "composition": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "texture": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "structure": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "color": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "igneous": {
                    "type": "object",
                    "properties": {
                      "environment": {
                        "type": "string",
                        "x-extensible-enum": [
                          "intrusive",
                          "extrusive",
                          "pyroclastic"
                        ],
                        "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                      },
                      "composition": {
                        "type": "string",
                        "x-extensible-enum": [
                          "felsic",
                          "intermediate",
                          "mafic",
                          "ultramafic"
                        ],
                        "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                      }
                    }
                  },
                  "sedimentary": {
                    "type": "object",
                    "properties": {
                      "category": {
                        "type": "string",
                        "x-extensible-enum": [
                          "clastic",
                          "chemical",
                          "biochemical",
                          "organic"
                        ],
                        "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                      },
                      "sorting": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "rounding": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "fossilContent": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    }
                  },
                  "metamorphic": {
                    "type": "object",
                    "properties": {
                      "foliation": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "protolith": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "grade": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    }
                  }
                }
              },
              "gemstone": {
                "type": "object",
                "properties": {
                  "cut": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clarity": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "shape": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "growthOrigin": {
                    "type": "string",
                    "x-extensible-enum": [
                      "natural",
                      "lab-grown",
                      "unknown"
                    ],
                    "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                  },
                  "treatment": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "report": {
                    "type": "object",
                    "properties": {
                      "lab": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "number": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "date": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      "origin": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    }
                  }
                }
              }
            }
          },
          "dimensions": {
            "type": "object",
            "properties": {
              "length": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "width": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "height": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "unit": {
                "type": "string",
                "x-extensible-enum": [
                  "mm",
                  "cm",
                  "in",
                  "ft"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              }
            },
            "required": [
              "unit"
            ]
          },
          "matrixDimensions": {
            "type": "object",
            "properties": {
              "length": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "width": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "height": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "unit": {
                "type": "string",
                "x-extensible-enum": [
                  "mm",
                  "cm",
                  "in",
                  "ft"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              }
            },
            "required": [
              "unit"
            ]
          },
          "mass": {
            "type": "object",
            "properties": {
              "value": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "unit": {
                "type": "string",
                "x-extensible-enum": [
                  "g",
                  "kg",
                  "lb",
                  "ct"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              }
            },
            "required": [
              "value",
              "unit"
            ]
          },
          "geology": {
            "type": "object",
            "properties": {
              "era": {
                "type": "string",
                "x-extensible-enum": [
                  "cenozoic",
                  "mesozoic",
                  "paleozoic",
                  "proterozoic",
                  "archean"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              },
              "period": {
                "type": "string",
                "x-extensible-enum": [
                  "quaternary",
                  "neogene",
                  "paleogene",
                  "cretaceous",
                  "jurassic",
                  "triassic",
                  "permian",
                  "carboniferous",
                  "pennsylvanian",
                  "mississippian",
                  "devonian",
                  "silurian",
                  "ordovician",
                  "cambrian",
                  "neoProterozoic",
                  "mesoProterozoic",
                  "paleoProterozoic",
                  "neoArchean",
                  "mesoArchean",
                  "paleoArchean",
                  "eoArchean"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              },
              "epoch": {
                "type": "string",
                "x-extensible-enum": [
                  "holocene",
                  "pleistocene",
                  "pliocene",
                  "miocene",
                  "oligocene",
                  "eocene",
                  "paleocene",
                  "lateCretaceous",
                  "earlyCretaceous",
                  "lateJurassic",
                  "middleJurassic",
                  "earlyJurassic",
                  "lateTriassic",
                  "middleTriassic",
                  "earlyTriassic",
                  "lopingian",
                  "guadalupian",
                  "cisuralian",
                  "lateCarboniferous",
                  "earlyCarboniferous",
                  "latePennsylvanian",
                  "middlePennsylvanian",
                  "earlyPennsylvanian",
                  "lateMississippian",
                  "middleMississippian",
                  "earlyMississippian",
                  "lateDevonian",
                  "middleDevonian",
                  "earlyDevonian",
                  "pridoli",
                  "ludlow",
                  "wenlock",
                  "llandovery",
                  "lateOrdovician",
                  "middleOrdovician",
                  "earlyOrdovician",
                  "furongian",
                  "miaolingian",
                  "series2",
                  "terreneuvian"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              },
              "age": {
                "description": "ICS geochronologic age, not how old the specimen is. Open set: new values can be added in v1, so accept and preserve values not listed here.",
                "type": "string",
                "x-extensible-enum": [
                  "meghalayan",
                  "northgrippian",
                  "greenlandian",
                  "upperPleistocene",
                  "chibanian",
                  "calabrian",
                  "gelasian",
                  "piacenzian",
                  "zanclean",
                  "messinian",
                  "tortonian",
                  "serravallian",
                  "langhian",
                  "burdigalian",
                  "aquitanian",
                  "chattian",
                  "rupelian",
                  "priabonian",
                  "bartonian",
                  "lutetian",
                  "ypresian",
                  "thanetian",
                  "selandian",
                  "danian",
                  "maastrichtian",
                  "campanian",
                  "santonian",
                  "coniacian",
                  "turonian",
                  "cenomanian",
                  "albian",
                  "aptian",
                  "barremian",
                  "hauterivian",
                  "valanginian",
                  "berriasian",
                  "tithonian",
                  "kimmeridgian",
                  "oxfordian",
                  "callovian",
                  "bathonian",
                  "bajocian",
                  "aalenian",
                  "toarcian",
                  "pliensbachian",
                  "sinemurian",
                  "hettangian",
                  "rhaetian",
                  "norian",
                  "carnian",
                  "ladinian",
                  "anisian",
                  "olenekian",
                  "induan",
                  "changhsingian",
                  "wuchiapingian",
                  "capitanian",
                  "wordian",
                  "roadian",
                  "kungurian",
                  "artinskian",
                  "sakmarian",
                  "asselian",
                  "gzhelian",
                  "kasimovian",
                  "moscovian",
                  "bashkirian",
                  "serpukhovian",
                  "visean",
                  "tournaisian",
                  "famennian",
                  "frasnian",
                  "givetian",
                  "eifelian",
                  "emsian",
                  "pragian",
                  "lochkovian",
                  "ludfordian",
                  "gorstian",
                  "homerian",
                  "sheinwoodian",
                  "telychian",
                  "aeronian",
                  "rhuddanian",
                  "hirnantian",
                  "katian",
                  "sandbian",
                  "darriwilian",
                  "dapingian",
                  "floian",
                  "tremadocian",
                  "stage10",
                  "jiangshanian",
                  "paibian",
                  "guzhangian",
                  "drumian",
                  "wuliuan",
                  "stage4",
                  "stage3",
                  "stage2",
                  "fortunian"
                ]
              },
              "formation": {
                "type": "string",
                "maxLength": 4096
              }
            }
          },
          "locality": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 4096
              },
              "country": {
                "type": "string",
                "maxLength": 4096
              },
              "coordinates": {
                "type": "object",
                "properties": {
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "uncertaintyMeters": {
                    "description": "Absent means an exact point.",
                    "type": "number"
                  }
                },
                "required": [
                  "latitude",
                  "longitude"
                ]
              }
            }
          },
          "collectedDate": {
            "type": "string",
            "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
            "description": "Partial calendar date in ISO 8601 reduced precision: \"YYYY\", \"YYYY-MM\" or \"YYYY-MM-DD\"."
          },
          "acquisition": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
                "description": "Partial calendar date in ISO 8601 reduced precision: \"YYYY\", \"YYYY-MM\" or \"YYYY-MM-DD\"."
              },
              "method": {
                "type": "string",
                "x-extensible-enum": [
                  "found",
                  "gifted",
                  "purchased",
                  "traded"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              },
              "source": {
                "type": "string",
                "maxLength": 4096
              },
              "price": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "minimum": 0
                  },
                  "currency": {
                    "anyOf": [
                      {
                        "type": "string",
                        "x-extensible-enum": [
                          "USD",
                          "EUR",
                          "GBP",
                          "CAD",
                          "HKD",
                          "TWD",
                          "JPY",
                          "AUD",
                          "CHF",
                          "CNY",
                          "SEK",
                          "NOK",
                          "DKK",
                          "PLN",
                          "CZK",
                          "HUF",
                          "RUB",
                          "BRL",
                          "INR",
                          "KRW",
                          "MXN",
                          "SGD",
                          "NZD",
                          "ZAR",
                          "TRY",
                          "ILS",
                          "AED",
                          "THB",
                          "MYR"
                        ],
                        "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ]
              }
            }
          },
          "valuation": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "anyOf": [
                  {
                    "type": "string",
                    "x-extensible-enum": [
                      "USD",
                      "EUR",
                      "GBP",
                      "CAD",
                      "HKD",
                      "TWD",
                      "JPY",
                      "AUD",
                      "CHF",
                      "CNY",
                      "SEK",
                      "NOK",
                      "DKK",
                      "PLN",
                      "CZK",
                      "HUF",
                      "RUB",
                      "BRL",
                      "INR",
                      "KRW",
                      "MXN",
                      "SGD",
                      "NZD",
                      "ZAR",
                      "TRY",
                      "ILS",
                      "AED",
                      "THB",
                      "MYR"
                    ],
                    "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "amount",
              "currency"
            ]
          },
          "disposition": {
            "type": "object",
            "properties": {
              "status": {
                "type": "string",
                "x-extensible-enum": [
                  "sold",
                  "traded",
                  "gifted",
                  "lost"
                ],
                "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
              },
              "date": {
                "description": "Stored date string, returned as stored. App-written values are RFC 3339 instants whose time of day carries no meaning; format them in the owner's time zone to get the day the app shows.",
                "type": "string"
              },
              "recipient": {
                "type": "string",
                "maxLength": 4096
              },
              "price": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number"
                  },
                  "currency": {
                    "type": "string",
                    "x-extensible-enum": [
                      "USD",
                      "EUR",
                      "GBP",
                      "CAD",
                      "HKD",
                      "TWD",
                      "JPY",
                      "AUD",
                      "CHF",
                      "CNY",
                      "SEK",
                      "NOK",
                      "DKK",
                      "PLN",
                      "CZK",
                      "HUF",
                      "RUB",
                      "BRL",
                      "INR",
                      "KRW",
                      "MXN",
                      "SGD",
                      "NZD",
                      "ZAR",
                      "TRY",
                      "ILS",
                      "AED",
                      "THB",
                      "MYR"
                    ],
                    "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ]
              },
              "notes": {
                "type": "string"
              },
              "images": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string",
                      "maxLength": 16384
                    }
                  },
                  "required": [
                    "url"
                  ]
                }
              }
            },
            "required": [
              "status",
              "images"
            ]
          },
          "condition": {
            "type": "string",
            "maxLength": 4096
          },
          "catalogNumber": {
            "type": "string",
            "maxLength": 256
          },
          "notes": {
            "type": "string",
            "maxLength": 65536
          },
          "storage": {
            "type": "object",
            "properties": {
              "room": {
                "type": "string",
                "maxLength": 4096
              },
              "cabinet": {
                "type": "string",
                "maxLength": 4096
              },
              "drawer": {
                "type": "string",
                "maxLength": 4096
              }
            }
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 4096
            }
          },
          "isFavorite": {
            "type": "boolean"
          },
          "isPublic": {
            "type": "boolean"
          },
          "shareUrl": {
            "type": "string"
          },
          "images": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "string",
                  "pattern": "^img_[a-f0-9]{64}$"
                },
                "url": {
                  "type": "string",
                  "maxLength": 16384
                }
              },
              "required": [
                "url"
              ]
            }
          }
        },
        "required": [
          "id",
          "category",
          "createdAt",
          "tags",
          "isFavorite",
          "isPublic",
          "images"
        ]
      },
      "Problem": {
        "type": "object",
        "required": [
          "type",
          "title",
          "status",
          "detail",
          "code",
          "requestId"
        ],
        "properties": {
          "type": {
            "const": "about:blank"
          },
          "title": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          },
          "detail": {
            "type": "string"
          },
          "code": {
            "type": "string"
          },
          "requestId": {
            "type": "string",
            "format": "uuid"
          },
          "limitWindow": {
            "x-extensible-enum": [
              "minute",
              "day",
              "both"
            ],
            "description": "Open set: new values can be added in v1, so accept and preserve values not listed here."
          },
          "limitBytes": {
            "type": "integer",
            "minimum": 1,
            "description": "Only with 413 image_too_large: the byte limit applied."
          },
          "errors": {
            "type": "array",
            "maxItems": 20,
            "description": "Only with 422 validation_failed: the offending members in document order. Never contains submitted values.",
            "items": {
              "type": "object",
              "required": [
                "pointer",
                "code"
              ],
              "properties": {
                "pointer": {
                  "type": "string",
                  "description": "RFC 6901 JSON Pointer into the request body, in public field names; empty for the whole body."
                },
                "code": {
                  "type": "string",
                  "description": "Stable machine code, such as unrecognized_key, read_only, required, category_field, invalid_type or invalid_value. Open set."
                }
              }
            }
          }
        }
      },
      "SpecimenCreateV1": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "category": {
            "type": "string",
            "enum": [
              "fossil",
              "mineral",
              "gemstone",
              "rock"
            ]
          },
          "specimenName": {
            "type": [
              "string",
              "null"
            ]
          },
          "fossils": {
            "minItems": 1,
            "maxItems": 64,
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "descriptiveName": {
                  "type": "string"
                },
                "taxonomy": {
                  "type": "object",
                  "properties": {
                    "kingdom": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "phylum": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "subphylum": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "class": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "subclass": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "superorder": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "order": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "infraorder": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "suborder": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "superfamily": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "family": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "subfamily": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "genus": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "subgenus": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    },
                    "species": {
                      "type": "object",
                      "properties": {
                        "name": {
                          "type": "string"
                        },
                        "author": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "name"
                      ],
                      "additionalProperties": false
                    }
                  },
                  "additionalProperties": false
                },
                "element": {
                  "type": "string"
                },
                "dimensions": {
                  "type": "object",
                  "properties": {
                    "length": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "width": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "height": {
                      "type": "number",
                      "exclusiveMinimum": 0
                    },
                    "unit": {
                      "type": "string",
                      "enum": [
                        "mm",
                        "cm",
                        "in",
                        "ft"
                      ]
                    }
                  },
                  "required": [
                    "unit"
                  ],
                  "additionalProperties": false
                },
                "notes": {
                  "type": "string"
                }
              },
              "additionalProperties": false
            }
          },
          "form": {
            "type": "string"
          },
          "material": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 4096
              },
              "group": {
                "type": "string",
                "maxLength": 4096
              },
              "variety": {
                "type": "string",
                "maxLength": 4096
              },
              "color": {
                "type": "string",
                "maxLength": 4096
              },
              "chemicalFormula": {
                "type": "string",
                "maxLength": 4096
              },
              "crystalHabit": {
                "type": "string",
                "maxLength": 4096
              },
              "crystalSystem": {
                "type": "string",
                "maxLength": 4096
              },
              "mohsHardness": {
                "type": "number"
              },
              "specificGravity": {
                "type": "number"
              },
              "luster": {
                "type": "string",
                "maxLength": 4096
              },
              "streak": {
                "type": "string",
                "maxLength": 4096
              },
              "transparency": {
                "type": "string",
                "maxLength": 4096
              },
              "cleavage": {
                "type": "string",
                "maxLength": 4096
              },
              "fracture": {
                "type": "string",
                "maxLength": 4096
              },
              "rock": {
                "type": "object",
                "properties": {
                  "type": {
                    "type": "string",
                    "enum": [
                      "igneous",
                      "sedimentary",
                      "metamorphic"
                    ]
                  },
                  "grainSize": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "composition": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "texture": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "structure": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "color": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "igneous": {
                    "type": "object",
                    "properties": {
                      "environment": {
                        "type": "string",
                        "enum": [
                          "intrusive",
                          "extrusive",
                          "pyroclastic"
                        ]
                      },
                      "composition": {
                        "type": "string",
                        "enum": [
                          "felsic",
                          "intermediate",
                          "mafic",
                          "ultramafic"
                        ]
                      }
                    },
                    "additionalProperties": false
                  },
                  "sedimentary": {
                    "type": "object",
                    "properties": {
                      "category": {
                        "type": "string",
                        "enum": [
                          "clastic",
                          "chemical",
                          "biochemical",
                          "organic"
                        ]
                      },
                      "sorting": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "rounding": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "fossilContent": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "additionalProperties": false
                  },
                  "metamorphic": {
                    "type": "object",
                    "properties": {
                      "foliation": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "protolith": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "grade": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              },
              "gemstone": {
                "type": "object",
                "properties": {
                  "cut": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "clarity": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "shape": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "growthOrigin": {
                    "type": "string",
                    "enum": [
                      "natural",
                      "lab-grown",
                      "unknown"
                    ]
                  },
                  "treatment": {
                    "type": "string",
                    "maxLength": 4096
                  },
                  "report": {
                    "type": "object",
                    "properties": {
                      "lab": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "number": {
                        "type": "string",
                        "maxLength": 4096
                      },
                      "date": {
                        "type": "string",
                        "format": "date",
                        "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
                      },
                      "origin": {
                        "type": "string",
                        "maxLength": 4096
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "dimensions": {
            "type": "object",
            "properties": {
              "length": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "width": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "height": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "unit": {
                "type": "string",
                "enum": [
                  "mm",
                  "cm",
                  "in",
                  "ft"
                ]
              }
            },
            "required": [
              "unit"
            ],
            "additionalProperties": false
          },
          "matrixDimensions": {
            "type": "object",
            "properties": {
              "length": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "width": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "height": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "unit": {
                "type": "string",
                "enum": [
                  "mm",
                  "cm",
                  "in",
                  "ft"
                ]
              }
            },
            "required": [
              "unit"
            ],
            "additionalProperties": false
          },
          "mass": {
            "type": "object",
            "properties": {
              "value": {
                "type": "number",
                "exclusiveMinimum": 0
              },
              "unit": {
                "type": "string",
                "enum": [
                  "g",
                  "kg",
                  "lb",
                  "ct"
                ]
              }
            },
            "required": [
              "value",
              "unit"
            ],
            "additionalProperties": false
          },
          "geology": {
            "type": "object",
            "properties": {
              "era": {
                "type": "string",
                "enum": [
                  "cenozoic",
                  "mesozoic",
                  "paleozoic",
                  "proterozoic",
                  "archean"
                ]
              },
              "period": {
                "type": "string",
                "enum": [
                  "quaternary",
                  "neogene",
                  "paleogene",
                  "cretaceous",
                  "jurassic",
                  "triassic",
                  "permian",
                  "carboniferous",
                  "pennsylvanian",
                  "mississippian",
                  "devonian",
                  "silurian",
                  "ordovician",
                  "cambrian",
                  "neoProterozoic",
                  "mesoProterozoic",
                  "paleoProterozoic",
                  "neoArchean",
                  "mesoArchean",
                  "paleoArchean",
                  "eoArchean"
                ]
              },
              "epoch": {
                "type": "string",
                "enum": [
                  "holocene",
                  "pleistocene",
                  "pliocene",
                  "miocene",
                  "oligocene",
                  "eocene",
                  "paleocene",
                  "lateCretaceous",
                  "earlyCretaceous",
                  "lateJurassic",
                  "middleJurassic",
                  "earlyJurassic",
                  "lateTriassic",
                  "middleTriassic",
                  "earlyTriassic",
                  "lopingian",
                  "guadalupian",
                  "cisuralian",
                  "lateCarboniferous",
                  "earlyCarboniferous",
                  "latePennsylvanian",
                  "middlePennsylvanian",
                  "earlyPennsylvanian",
                  "lateMississippian",
                  "middleMississippian",
                  "earlyMississippian",
                  "lateDevonian",
                  "middleDevonian",
                  "earlyDevonian",
                  "pridoli",
                  "ludlow",
                  "wenlock",
                  "llandovery",
                  "lateOrdovician",
                  "middleOrdovician",
                  "earlyOrdovician",
                  "furongian",
                  "miaolingian",
                  "series2",
                  "terreneuvian"
                ]
              },
              "age": {
                "type": "string",
                "enum": [
                  "meghalayan",
                  "northgrippian",
                  "greenlandian",
                  "upperPleistocene",
                  "chibanian",
                  "calabrian",
                  "gelasian",
                  "piacenzian",
                  "zanclean",
                  "messinian",
                  "tortonian",
                  "serravallian",
                  "langhian",
                  "burdigalian",
                  "aquitanian",
                  "chattian",
                  "rupelian",
                  "priabonian",
                  "bartonian",
                  "lutetian",
                  "ypresian",
                  "thanetian",
                  "selandian",
                  "danian",
                  "maastrichtian",
                  "campanian",
                  "santonian",
                  "coniacian",
                  "turonian",
                  "cenomanian",
                  "albian",
                  "aptian",
                  "barremian",
                  "hauterivian",
                  "valanginian",
                  "berriasian",
                  "tithonian",
                  "kimmeridgian",
                  "oxfordian",
                  "callovian",
                  "bathonian",
                  "bajocian",
                  "aalenian",
                  "toarcian",
                  "pliensbachian",
                  "sinemurian",
                  "hettangian",
                  "rhaetian",
                  "norian",
                  "carnian",
                  "ladinian",
                  "anisian",
                  "olenekian",
                  "induan",
                  "changhsingian",
                  "wuchiapingian",
                  "capitanian",
                  "wordian",
                  "roadian",
                  "kungurian",
                  "artinskian",
                  "sakmarian",
                  "asselian",
                  "gzhelian",
                  "kasimovian",
                  "moscovian",
                  "bashkirian",
                  "serpukhovian",
                  "visean",
                  "tournaisian",
                  "famennian",
                  "frasnian",
                  "givetian",
                  "eifelian",
                  "emsian",
                  "pragian",
                  "lochkovian",
                  "ludfordian",
                  "gorstian",
                  "homerian",
                  "sheinwoodian",
                  "telychian",
                  "aeronian",
                  "rhuddanian",
                  "hirnantian",
                  "katian",
                  "sandbian",
                  "darriwilian",
                  "dapingian",
                  "floian",
                  "tremadocian",
                  "stage10",
                  "jiangshanian",
                  "paibian",
                  "guzhangian",
                  "drumian",
                  "wuliuan",
                  "stage4",
                  "stage3",
                  "stage2",
                  "fortunian"
                ]
              },
              "formation": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "additionalProperties": false
          },
          "locality": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "maxLength": 4096
              },
              "country": {
                "type": "string",
                "maxLength": 4096
              },
              "coordinates": {
                "type": "object",
                "properties": {
                  "latitude": {
                    "type": "number"
                  },
                  "longitude": {
                    "type": "number"
                  },
                  "uncertaintyMeters": {
                    "type": "number"
                  }
                },
                "required": [
                  "latitude",
                  "longitude"
                ],
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "collectedDate": {
            "type": "string",
            "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
            "description": "Partial calendar date in ISO 8601 reduced precision: \"YYYY\", \"YYYY-MM\" or \"YYYY-MM-DD\"."
          },
          "acquisition": {
            "type": "object",
            "properties": {
              "date": {
                "type": "string",
                "pattern": "^\\d{4}(-\\d{2}(-\\d{2})?)?$",
                "description": "Partial calendar date in ISO 8601 reduced precision: \"YYYY\", \"YYYY-MM\" or \"YYYY-MM-DD\"."
              },
              "method": {
                "type": "string",
                "enum": [
                  "found",
                  "gifted",
                  "purchased",
                  "traded"
                ]
              },
              "source": {
                "type": "string",
                "maxLength": 4096
              },
              "price": {
                "type": "object",
                "properties": {
                  "amount": {
                    "type": "number",
                    "minimum": 0
                  },
                  "currency": {
                    "type": "string",
                    "enum": [
                      "USD",
                      "EUR",
                      "GBP",
                      "CAD",
                      "HKD",
                      "TWD",
                      "JPY",
                      "AUD",
                      "CHF",
                      "CNY",
                      "SEK",
                      "NOK",
                      "DKK",
                      "PLN",
                      "CZK",
                      "HUF",
                      "RUB",
                      "BRL",
                      "INR",
                      "KRW",
                      "MXN",
                      "SGD",
                      "NZD",
                      "ZAR",
                      "TRY",
                      "ILS",
                      "AED",
                      "THB",
                      "MYR"
                    ]
                  }
                },
                "required": [
                  "amount",
                  "currency"
                ],
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          "valuation": {
            "type": "object",
            "properties": {
              "amount": {
                "type": "number",
                "minimum": 0
              },
              "currency": {
                "type": "string",
                "enum": [
                  "USD",
                  "EUR",
                  "GBP",
                  "CAD",
                  "HKD",
                  "TWD",
                  "JPY",
                  "AUD",
                  "CHF",
                  "CNY",
                  "SEK",
                  "NOK",
                  "DKK",
                  "PLN",
                  "CZK",
                  "HUF",
                  "RUB",
                  "BRL",
                  "INR",
                  "KRW",
                  "MXN",
                  "SGD",
                  "NZD",
                  "ZAR",
                  "TRY",
                  "ILS",
                  "AED",
                  "THB",
                  "MYR"
                ]
              }
            },
            "required": [
              "amount",
              "currency"
            ],
            "additionalProperties": false
          },
          "condition": {
            "type": "string",
            "maxLength": 4096
          },
          "catalogNumber": {
            "type": "string",
            "maxLength": 256
          },
          "notes": {
            "type": "string",
            "maxLength": 65536
          },
          "storage": {
            "type": "object",
            "properties": {
              "room": {
                "type": "string",
                "maxLength": 4096
              },
              "cabinet": {
                "type": "string",
                "maxLength": 4096
              },
              "drawer": {
                "type": "string",
                "maxLength": 4096
              }
            },
            "additionalProperties": false
          },
          "tags": {
            "maxItems": 20,
            "type": "array",
            "items": {
              "type": "string",
              "maxLength": 128
            }
          },
          "isFavorite": {
            "type": "boolean"
          }
        },
        "required": [
          "category"
        ],
        "additionalProperties": false
      }
    }
  }
}
