Siren

Create Obligation

Creates a new obligation record for a collaborator.

Last updated: April 9, 2026

Create Obligation

POST /siren/v1/obligations

Creates a new obligation record.

Request Body

FieldTypeRequiredDescription
collaboratorIdintegerYesID of the collaborator (must exist)
statusstringYesInitial status: pending, fulfilled, or cancelled
awardTypestringYesType of award (e.g., commission)
valueintegerYesValue in smallest currency unit
payoutIdintegerNoID of associated payout

Middleware

CollaboratorAliasResolverMiddleware resolves collaborator aliases before the request is processed.

Example Request

{
  "collaboratorId": 5,
  "status": "pending",
  "awardType": "commission",
  "value": 2500
}

Example Response

{
  "id": 11,
  "collaboratorId": 5,
  "status": "pending",
  "awardType": "commission",
  "value": 2500,
  "payoutId": null,
  "dateCreated": "2026-04-06T12:00:00Z",
  "dateModified": "2026-04-06T12:00:00Z"
}

Events

Broadcasts ObligationActionEvent (action: Create) after success.