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.
bearerAuthAuthorizationBearer <token>A Clerk user API key or OAuth access token carrying the falconry:read and/or falconry:write scope.
documentId*stringA document's id, from list_documents.
length <= 64application/json- body
title?string1 <= length <= 200description?|nullissueDate?|nullexpiryDate?|nullissuingAuthority?|nullraptorId?|Move the document to another raptor, or null to make it an account-level document.
tags?array<>Replaces the whole tag list.
items <= 20reminderOffsets?array<>Days before expiry to remind, e.g. [30, 7, 1]. Replaces the list.
items <= 10Update a document’s details
application/json- response
id*stringOpaque Convex document id.
length <= 64raptorId*|The raptor this document belongs to, or null for an account-level document.
documentType*string"legal_permit""cites""vet_record""breeding_record""sales_contract""insurance""image""training_certificate""other""microchip"title*stringdescription*string|nullfileName*stringmimeType*stringfileSizeBytes*numberissueDate*string|nullexpiryDate*string|nullissuingAuthority*string|nulltags*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*stringloggedByName*string|nullcurl -X PATCH 'https://app.falconryscale.com/api/v1/documents/string' \
-H 'Content-Type: application/json' \
-d '{}'{
"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"
}Get one document’s details
Returns one document's metadata by id (no file contents or link). 404s if it does not exist or is not visible to the caller.
Get the caller's team
Returns the caller's team: its name, the caller's role, members (display names and roles only), seat usage, and, for an owner or admin, pending invites with masked addresses. `team` is null when the caller is not on a team.