-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
Summary
The POST /v1/bookmarks endpoint returns 422 Unprocessable Entity with the message "lastMutationAt" is required, but this field is not documented in the Add user bookmark API docs.
Observed behavior
Request:
{
"key": 2,
"type": "ayah",
"verseNumber": 255,
"mushaf": 4
}Response: 422 Unprocessable Entity
{
"message": "\"lastMutationAt\" is required",
"type": "unprocessable_entity",
"success": false
}Expected behavior
Either:
- The
lastMutationAtfield should be documented (type, format, and purpose), or - The field should be optional with a server-side default if not provided
Context
The documented request body schema (add-user-bookmark.api.mdx) lists only key, type, verseNumber, isReading, and mushaf as fields. The lastMutationAt field is not mentioned anywhere in the docs.
Tested against: https://apis-prelive.quran.foundation/auth/v1/bookmarks
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels