curl --location --request PUT 'https://api.stateset.com/v1/note' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "nt_1NXWPnCo6bFb1KQto6C8OWvE",
"title": "Note Title",
"body": "Note Body",
"created_date": "2020-01-01T00:00:00.000Z",
"last_modified_date": "2020-01-01T00:00:00.000Z"
}'
{
"notes": [
{
"id": "nt_1NXWPnCo6bFb1KQto6C8OWvE",
},
]
}
This endpoint updates a note.
curl --location --request PUT 'https://api.stateset.com/v1/note' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "nt_1NXWPnCo6bFb1KQto6C8OWvE",
"title": "Note Title",
"body": "Note Body",
"created_date": "2020-01-01T00:00:00.000Z",
"last_modified_date": "2020-01-01T00:00:00.000Z"
}'
{
"notes": [
{
"id": "nt_1NXWPnCo6bFb1KQto6C8OWvE",
},
]
}
curl --location --request PUT 'https://api.stateset.com/v1/note' \
--header 'Content-Type: application/json' \
--header 'Authorization: Token <token>' \
--data-raw '{
"id": "nt_1NXWPnCo6bFb1KQto6C8OWvE",
"title": "Note Title",
"body": "Note Body",
"created_date": "2020-01-01T00:00:00.000Z",
"last_modified_date": "2020-01-01T00:00:00.000Z"
}'
{
"notes": [
{
"id": "nt_1NXWPnCo6bFb1KQto6C8OWvE",
},
]
}