Files

View contents of a given file.

For a given file on a site, retrieve contents of file.

get/v1/sites/{id}/files/view

Request

  • Base URL
    https://api.rocket.net
  • Auth
    HTTP bearer

Path parameters

idinteger required

ID of the Site you are interacting with

Example:8880000888

Query parameters

filenamestring required
directorystring

Response

OK

successboolean

whether the request succeeded

errorsstring[]
messagesstring[] nullable

Example response

{
  "success": true,
  "errors": [],
  "messages": [],
  "result": {
    "content": "<?php echo 'Hello, world!'; ?>",
    "content_type": "image/jpeg"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.