1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| # Create multiple notes in one request
curl -X POST http://localhost/api/v1/notes \
-H "Content-Type: application/json" \
-d '{
"action": "batch",
"operations": [
{
"type": "create",
"payload": {
"page_id": 1,
"content": "First note {tags::important}",
"order_index": 1
}
},
{
"type": "create",
"payload": {
"page_id": 1,
"content": "Second note",
"order_index": 2
}
}
]
}'
|