Add Rename/Move/Update endpoints

This commit is contained in:
Ean Milligan
2026-04-09 23:04:03 -04:00
parent 3ffdb046ae
commit 820af82bde
7 changed files with 121 additions and 2 deletions

View File

@@ -1,7 +1,7 @@
meta {
name: delete plan
type: http
seq: 2
seq: 5
}
delete {

View File

@@ -0,0 +1,24 @@
meta {
name: move plan
type: http
seq: 4
}
put {
url: http://localhost:14014/api/move/[planId]
body: json
auth: inherit
}
body:json {
{
"name": "test",
"pin": "1234",
"folder": "new folder name"
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -0,0 +1,24 @@
meta {
name: rename plan
type: http
seq: 3
}
put {
url: http://localhost:14014/api/rename/[planId]
body: json
auth: inherit
}
body:json {
{
"name": "test",
"pin": "1234",
"planName": "new plan name"
}
}
settings {
encodeUrl: true
timeout: 0
}

View File

@@ -1,7 +1,7 @@
meta {
name: undelete plan
type: http
seq: 3
seq: 6
}
put {

View File

@@ -0,0 +1,24 @@
meta {
name: update plan
type: http
seq: 2
}
put {
url: http://localhost:14014/api/move/[planId]
body: json
auth: inherit
}
body:json {
{
"name": "test",
"pin": "1234",
"data": "new plan data"
}
}
settings {
encodeUrl: true
timeout: 0
}