Doc: Updated Markdown files

Auto-updated using release-website.sh
pull/6342/head
Joplin Bot 2022-03-28 18:20:22 +00:00
parent 3725b14e04
commit df8c265ee4
1 changed files with 6 additions and 0 deletions

View File

@ -331,6 +331,10 @@ Creating a new resource is special because you also need to upload the file. Unl
curl -F 'data=@/path/to/file.jpg' -F 'props={"title":"my resource title"}' http://localhost:41184/resources curl -F 'data=@/path/to/file.jpg' -F 'props={"title":"my resource title"}' http://localhost:41184/resources
Or to **update** a resource:
curl -X PUT -F 'data=@/path/to/file.jpg' -F 'props={"title":"my modified title"}' http://localhost:41184/resources/8fe1417d7b184324bf6b0122b76c4696
The "data" field is required, while the "props" one is not. If not specified, default values will be used. The "data" field is required, while the "props" one is not. If not specified, default values will be used.
**From a plugin** the syntax to create a resource is also a bit special: **From a plugin** the syntax to create a resource is also a bit special:
@ -351,6 +355,8 @@ The "data" field is required, while the "props" one is not. If not specified, de
Sets the properties of the resource with ID :id Sets the properties of the resource with ID :id
You may also update the file data by specifying a file (See `POST /resources` example).
## DELETE /resources/:id ## DELETE /resources/:id
Deletes the resource with ID :id Deletes the resource with ID :id