mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 20:06:08 +01:00 
			
		
		
		
	
		
			
	
	
		
			26 lines
		
	
	
		
			491 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			26 lines
		
	
	
		
			491 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								POST {{triliumHost}}/etapi/create-note
							 | 
						||
| 
								 | 
							
								Content-Type: application/json
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  "parentNoteId": "root",
							 | 
						||
| 
								 | 
							
								  "title": "Hello",
							 | 
						||
| 
								 | 
							
								  "type": "code",
							 | 
						||
| 
								 | 
							
								  "mime": "text/plain",
							 | 
						||
| 
								 | 
							
								  "content": "Hi there!"
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {% client.global.set("createdNoteId", response.body.note.noteId); %}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								###
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								PUT {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
							 | 
						||
| 
								 | 
							
								Content-Type: text/plain
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Changed content
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								###
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								GET {{triliumHost}}/etapi/notes/{{createdNoteId}}/content
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {% client.assert(response.body === "Changed content"); %}
							 |