mirror of
				https://github.com/TriliumNext/Notes.git
				synced 2025-11-04 15:11:31 +08:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			480 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			480 B
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
| 
								 | 
							
								POST {{triliumHost}}/etapi/create-note
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								Content-Type: application/json
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								{
							 | 
						||
| 
								 | 
							
								  "parentNoteId": "root",
							 | 
						||
| 
								 | 
							
								  "title": "Hello",
							 | 
						||
| 
								 | 
							
								  "type": "code",
							 | 
						||
| 
								 | 
							
								  "mime": "text/plain",
							 | 
						||
| 
								 | 
							
								  "content": "Hi there!"
							 | 
						||
| 
								 | 
							
								}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {% client.global.set("createdNoteId", response.body.note.noteId); %}
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								###
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								POST {{triliumHost}}/etapi/notes/{{createdNoteId}}/note-revision
							 | 
						||
| 
								 | 
							
								Authorization: {{authToken}}
							 | 
						||
| 
								 | 
							
								Content-Type: text/plain
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								Changed content
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								> {% client.assert(response.status === 204); %}
							 |