FalconryScale
DevelopersAPI reference

Update a document’s details

Edits a document's details (title, dates, issuing authority, tags, expiry reminders, which raptor it belongs to). The file itself can't be changed through the API. Only the fields you send change; null clears an optional field.

PATCH
/documents/{documentId}

Authorization

bearerAuth
headerAuthorizationBearer <token>

A Clerk user API key or OAuth access token carrying the falconry:read and/or falconry:write scope.

Path Parameters

documentId*string

A document's id, from list_documents.

Lengthlength <= 64

Request Body

application/json
  1. body
title?string
Length1 <= length <= 200
description?|null
issueDate?|null
expiryDate?|null
issuingAuthority?|null
raptorId?|

Move the document to another raptor, or null to make it an account-level document.

tags?array<>

Replaces the whole tag list.

Itemsitems <= 20
reminderOffsets?array<>

Days before expiry to remind, e.g. [30, 7, 1]. Replaces the list.

Itemsitems <= 10

Response Body

Update a document’s details

application/json
  1. response
id*string

Opaque Convex document id.

Lengthlength <= 64
raptorId*|

The raptor this document belongs to, or null for an account-level document.

documentType*string
Value in"legal_permit""cites""vet_record""breeding_record""sales_contract""insurance""image""training_certificate""other""microchip"
title*string
description*string|null
fileName*string
mimeType*string
fileSizeBytes*number
issueDate*string|null
expiryDate*string|null
issuingAuthority*string|null
tags*array<string>
reminderOffsets*array<number>

Days before expiry to send a reminder, e.g. [30, 7, 1].

daysUntilExpiry*|

Whole days from today (UTC) to expiryDate; negative once expired.

createdAt*string
loggedByName*string|null
Example Request
curl -X PATCH 'https://app.falconryscale.com/api/v1/documents/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "raptorId": "string",
  "documentType": "legal_permit",
  "title": "string",
  "description": "string",
  "fileName": "string",
  "mimeType": "string",
  "fileSizeBytes": 0,
  "issueDate": "string",
  "expiryDate": "string",
  "issuingAuthority": "string",
  "tags": [
    "string"
  ],
  "reminderOffsets": [
    0
  ],
  "daysUntilExpiry": 0,
  "createdAt": "string",
  "loggedByName": "string"
}