Having a really frustrating time trying to add an attendance entry to a test student. I'm using CURL, with the following request (edited only for security/privacy):
https://api.sky.blackbaud.com/school/v1/attendance
-X POST --header "Content-type: application/json" --header "Bb-Api-Subscription-Key: xxxxxxxxx" --header "Authorization: Bearer xxxxxxxxxxxx" --data-raw "{\\"begin_date\\":\\"2022-04-05T00:00:00-08:00\\",\\"end_date\\":\\"2022-04-05T00:00:00-08:00\\",\\"start_time\\":\\"00:00:00\\",\\"end_time\\":\\"23:59:00\\",\\"excuse_comment\\":\\"Testing\\",\\"excuse_type_id\\":3992,\\"student_user_id\\":444444}"
This generates the following unhelpful error message:
? * Line 1, Column 1
Syntax error: value, object or array expected.
* Line 1, Column 1
A valid JSON document must be either an array or an object value.
It doesn't matter how I massage the CURL Options - it keeps complaining that the JSON isn't properly formatted.
Any help figuring this out would be greatly appreciated!
Thank you.