resource | R Documentation |
Work with RIDL resources (files)
resource_create(pkgid, metadata) resource_update(id, metadata) resource_patch(id, metadata) resource_delete(id)
pkgid |
The id or name of the package to which this resource belongs to. |
metadata |
Metadata created by |
id |
The id or name of the resource. |
You must have the necessary permissions to create, edit, or delete packages and their resources.
Note that several fields are required for resource_create()
and resource_update()
operations to succeed. Consult resource_metadata()
for the details.
For resource_update()
/resource_patch()
operations, it is recommended to call resource_show()
, make the desired changes to the result, and then call resource_update()
/resource_patch()
with it.
The difference between the update and patch methods is that the patch will perform an update of the provided parameters, while leaving all other parameters unchanged, whereas the update methods deletes all parameters not explicitly provided in the metadata
.
The resource.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.