FalconryScale
DevelopersAPI reference

Correct an activity

Edits a logged activity. Only the fields you send change; null clears an optional field. The weight change is recomputed from the pre/post flight weights. A hunt's outcome and slip assessment can't be edited after logging. Team members may edit only rows they logged themselves; owners and admins may edit any.

PATCH
/activities/{activityId}

Authorization

bearerAuth
headerAuthorizationBearer <token>

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

Path Parameters

activityId*string

An activity's id, from list_activities.

Lengthlength <= 64

Request Body

application/json
  1. body
activityType?string
Value in"training""hunting""feeding""flight_exercise""health_observation""transport"
activityDate?string

ISO 8601 date (yyyy-mm-dd).

Match^\d{4}-\d{2}-\d{2}$
activitySubtype?|null
startTime?|null
durationMinutes?|null
locationDescription?|null
preFlightWeightGrams?|null
postFlightWeightGrams?|null
preyCount?|null
behavioralTags?array<>|null
creanceLengthM?|null
recallDistanceM?|null
notes?|null

Response Body

Correct an activity

application/json
  1. response
id*string

Opaque Convex document id.

Lengthlength <= 64
activityType*string
Value in"training""hunting""feeding""flight_exercise""health_observation""transport"
activityDate*string

ISO 8601 date (yyyy-mm-dd).

startTime*|

HH:MM time of day.

durationMinutes*number|null
locationDescription*string|null
preFlightWeightGrams*number|null
postFlightWeightGrams*number|null
weightChangeGrams*number|null
preyCount*number|null
successOutcome*|

Whether a hunting slip was successful.

activitySubtype*string|null
behavioralTags*array<string>
creanceLengthM*|

Training: creance line length, metres.

recallDistanceM*|

Training: recall distance, metres.

slipAssessment*|

Hunting only: the slip assessment (each advantage 0 to 100), when one was recorded.

notes*string|null
loggedByName*string|null
Example Request
curl -X PATCH 'https://app.falconryscale.com/api/v1/activities/string' \
  -H 'Content-Type: application/json' \
  -d '{}'
Example Response
{
  "id": "string",
  "activityType": "training",
  "activityDate": "string",
  "startTime": "string",
  "durationMinutes": 0,
  "locationDescription": "string",
  "preFlightWeightGrams": 0,
  "postFlightWeightGrams": 0,
  "weightChangeGrams": 0,
  "preyCount": 0,
  "successOutcome": true,
  "activitySubtype": "string",
  "behavioralTags": [
    "string"
  ],
  "creanceLengthM": 0,
  "recallDistanceM": 0,
  "slipAssessment": {
    "heightAdvantage": 0,
    "speedAdvantage": 0,
    "proximityAdvantage": 0,
    "surpriseAdvantage": 0,
    "coverAdvantage": 0,
    "preyEscapeMethod": "outran",
    "birdUsedHeightEffectively": true
  },
  "notes": "string",
  "loggedByName": "string"
}