v1

latestOpenAPI 3.0.02026-07-135965404.0 KB
Resources

Move resources

Moves a set of exisiting files/folders (provided by an array resources) to the requested parentResource in your account. In the resources array, you may specify paths pointing files/folders throughout the account, but everything will be moved to the root of the parentResource.

Notes:

  • Authenticated user should have modify permission.
post/resources/move

Headers

ev-api-keystring required

API Key required to make the API call.

ev-access-tokenstring required

Access token required to make the API call.

Request body

resourcesstring[] required

Array containing file/folder paths to move.

parentResourcestring required

Resource identifier of folder to move files/folders to.

Example request

{
  "resources": [
    "/testone.jpg",
    "/folder"
  ],
  "parentResource": "/copyhere"
}

Response

Successful Operation

metaobject

Meta object containing non-standard meta-information about the operation.

Example response

{
  "data": {
    "id": 1,
    "type": "resource",
    "attributes": {
      "hash": "ec4aa9a91be282666a165899a14f29b1",
      "name": "examplefolder",
      "createdBy": "exampleuser",
      "uploadDate": "2011-03-21T00:18:56-07:00",
      "createdAt": "2011-03-21T00:18:56-07:00",
      "updatedAt": "2011-03-21T00:18:56-07:00",
      "accessedAt": "2011-03-21T00:18:56-07:00",
      "path": "/examplefolder",
      "previewable": true
    },
    "relationships": {
      "share": {
        "data": {
          "id": 2345,
          "type": "share"
        }
      },
      "notifications": [
        {
          "data": {
            "id": 2,
            "type": "notification"
          }
        }
      ],
      "directFile": {
        "data": {
          "id": 2,
          "type": "directFile"
        }
      },
      "parentResource": {
        "data": {
          "id": 2,
          "type": "resource"
        }
      }
    }
  },
  "meta": {
    "id": 2321
  }
}