Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Uploads a resource with file contents. Returns newly created resource's id in the response.

URL
/rest/resource
Method
POST
Data Params

Required:

  • name = [string]
  • upload_file = [file]
  • resource_type = [string]

Optional:

  • uri = [string]
  • description = [string]
  • collection = [string]
  • public = [boolean]
Success Response

Code: 200
Content: {"id": 100}