cURL
curl --request PATCH \ --url https://api.thehaystack.ai/v2/haystack/scriptures/{scriptureId} \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "book": "<string>", "chapter": 123, "verseStart": 123, "verseEnd": 123, "keyVerse": true, "accepted": true, "suggested": true, "displayOrder": 123 } '
{ "scripture": { "id": 123, "itemId": 123, "book": "<string>", "bookName": "<string>", "chapter": 123, "verseStart": 123, "verseEnd": 123, "citation": "<string>", "keyVerse": true, "suggested": true, "accepted": true, "displayOrder": 123, "text": "<string>" } }
Update metadata on a scripture. Pass displayOrder to reorder; subsequent siblings shift automatically.
displayOrder
Enter your API token from the Haystack dashboard
Only valid for suggested scriptures
Updated scripture
Show child attributes