| 
									
										
										
										
											2022-09-16 13:18:01 +10:00
										 |  |  | POST {{triliumHost}}/etapi/create-note | 
					
						
							|  |  |  | Authorization: {{authToken}} | 
					
						
							|  |  |  | Content-Type: application/json | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | { | 
					
						
							|  |  |  |   "parentNoteId": "root", | 
					
						
							|  |  |  |   "title": "Hello", | 
					
						
							|  |  |  |   "type": "text", | 
					
						
							|  |  |  |   "content": "Hi there!" | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | > {% | 
					
						
							|  |  |  |     client.global.set("createdNoteId", response.body.note.noteId); | 
					
						
							|  |  |  |     client.global.set("createdBranchId", response.body.branch.branchId); | 
					
						
							|  |  |  | %} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ### | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | GET {{triliumHost}}/etapi/notes/{{createdNoteId}}/content | 
					
						
							|  |  |  | Authorization: {{authToken}} | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | > {% | 
					
						
							|  |  |  |     client.assert(response.status === 200); | 
					
						
							| 
									
										
										
										
											2023-06-05 21:14:33 +02:00
										 |  |  |     client.assert(response.body === "Hi there!"); | 
					
						
							| 
									
										
										
										
											2022-09-16 13:18:01 +10:00
										 |  |  | %} |