Path parameters
-
noteid integer Required
The ID of the note to change.
Body Required
-
unique_id integer
-
for string
Values are
P
orH
. -
text string
The text of the note
-
visibility string
Values are
anyone
,me
, orgroup
. -
visibility_group integer
When the visibility is set to group, you must include this other property, otherwise its optional
-
color_code string
The color code used for this note
Values are
transparent
,929497
,9a75ab
,f3b24d
,f5324e
,39c3d1
,82ca68
,f278a9
, or45bdb3
. -
note_type_id integer
PUT /notes/{noteid}
curl \
-X PUT https://YOURSITE.infoodle.com/apiv2/notes/{noteid} \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: text/plain" \
-d '[{"unique_id":12345,"for":"P","text":"John enjoyed his trip","visibility":"group","visibility_group":543,"color_code":"9a75ab","note_type_id":20}]'
Request example
[
{
"unique_id": 12345,
"for": "P",
"text": "John enjoyed his trip",
"visibility": "group",
"visibility_group": 543,
"color_code": "9a75ab",
"note_type_id": 20
}
]
Response examples (200)
{
"success": "ok",
"note_id": 150
}
Response examples (400)
{
"error": "Error updating the note"
}