Update note by ID
Update a note by its ID.
Path Parameters
The unique identifier of the note to be retrieved or manipulated.
Request Body
Possible values: >= 6 characters
and <= 10000 characters
The main content of the note, must be between the specified minimum and maximum length.
Default value: false
Indicates whether the updated note should be saved to the QuranReflect, defaults to false.
- 200
- 403
- 404
- 422
- 500
Request has been handled successfully.
Schema
- Array [
- ]
data object
The unique identifier of the note.
The creation date of the note.
The last update date of the note.
Possible values: >= 6 characters
and <= 10000 characters
The main content of the note, must be between the specified minimum and maximum length.
The source of the note.
attachedEntities object[]
An array of attached entities associated with the note.
The unique identifier for the attached entity.
Possible values: [reflection
]
The type of the attached entity, must be one of the predefined NoteEntityType values.
entityMetadata object
Additional metadata for the attached entity.
Possible values: Value must match regular expression ^(\d+):(\d+)-(\d+):(\d+)$
An array of verse ranges associated with the note.
{
"success": true,
"data": {
"id": "asdasdqwe1231",
"createdAt": "2023-01-21T07:28:13.023Z",
"updatedAt": "2023-01-22T07:28:13.023Z",
"body": "This is a sample note body.",
"source": "we23412312weq",
"attachedEntities": [
{
"entityId": "entity123",
"entityType": "reflection",
"entityMetadata": {
"key": "value"
}
}
],
"ranges": [
"2:255-2:257"
]
}
}
Forbidden error. Can either be due to access token not being passed, having been expired or the caller trying to access a resource without enough permissions.
Schema
error object
{
"success": false,
"error": {
"code": "ForbiddenError",
"message": "Token expired"
}
}
Not Found. The resource being accessed does not exist.
Schema
error object
{
"success": false,
"error": {
"code": "NotFoundError",
"message": "The resource you're looking for does not exist"
}
}
Validation Error. The request includes one or more invalid params. Please check the request params and try again.
Schema
error object
{
"success": false,
"error": {
"code": "ValidationError",
"message": "`id` is required"
}
}
Server Error. Something went wrong, try again later.
Schema
error object
{
"success": false,
"error": {
"code": "ServerError",
"message": "Something went wrong"
}
}