TrieOH
UniventsAPIPrograms

Cancel the caller's sign-up for an occurrence

Self-service de-registration. Flips the caller's live participation to `cancelled` (history is kept; a re-registration inserts a fresh row). The spot is locked once attendance is marked: a guarded update only flips rows still in `registered`, so an `attended`/`no_show` participation returns 409. Unknown occurrence or not signed up is 404.

DELETE/occurrences/{occurrence_id}/registration

Self-service de-registration. Flips the caller's live participation to cancelled (history is kept; a re-registration inserts a fresh row). The spot is locked once attendance is marked: a guarded update only flips rows still in registered, so an attended/no_show participation returns 409. Unknown occurrence or not signed up is 404.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT issued by IdentityX, signed with Ed25519

In: header

Path Parameters

occurrence_id*string

Occurrence ID.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

curl -X DELETE "https://example.com/occurrences/497f6eca-6276-4993-bfeb-53cbbbba6f08/registration"
{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "edition_id": "aeda7fca-56fe-426a-8c37-1876faaaf005",
  "occurrence_id": "8508ee33-23a1-4a06-ae02-1eb167405e7b",
  "registration_id": "7b2966db-5b97-451d-80d4-713d3a44078b",
  "status": "registered",
  "created_at": "2019-08-24T14:15:22Z",
  "updated_at": "2019-08-24T14:15:22Z"
}
{
  "detail": "string",
  "instance": "../dictionary",
  "errors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "type": "http://example.com",
  "status": 401,
  "title": "Unauthenticated"
}
{
  "detail": "string",
  "instance": "../dictionary",
  "errors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "type": "http://example.com",
  "status": 403,
  "title": "Insufficient Role"
}
{
  "detail": "string",
  "instance": "../dictionary",
  "errors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "type": "http://example.com",
  "status": 404,
  "title": "Not Found"
}
{
  "detail": "string",
  "instance": "../dictionary",
  "errors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "type": "http://example.com",
  "status": 409,
  "title": "Person Has Ticket"
}
{
  "detail": "string",
  "instance": "../dictionary",
  "errors": [
    {
      "field": "string",
      "message": "string"
    }
  ],
  "type": "http://example.com",
  "status": 500,
  "title": "Internal Server Error"
}