activities

Approve Activity Claim

Original poster approves a specific claim.

Atomic transition:

  1. Lock activity row (SELECT FOR UPDATE) to serialise concurrent approvals
  2. Verify the target claim row exists and is pending
  3. Transfer creator_id to the approved claimant
  4. Mark the approved claim row as 'approved'
  5. Mark ALL other pending claims on this activity as 'superseded'
  6. Set claim_status = 'claimed_needs_review'

This fixes three sibling issues in one transaction: the race between concurrent approves, sibling pending claims lingering forever, and approval without a real claim row.

post/api/activities/{activity_id}/claim/approve/{claimant_id}

Request

  • Base URL: https://api.activitia.net (the document declares no server; this is the origin it was published from)
  • URL: https://api.activitia.net/api/activities/{activity_id}/claim/approve/{claimant_id}
  • Auth: none declared

Path parameters

activity_idstring required
claimant_idstring required

Headers

authorizationstring

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 1 revision of this API.