List sandbox files

sandboxFiles(sandboxId: ID!, path: String!, cursor: String, limit: Int): SandboxFileCollection!

Requires project.sandboxes.manage.

Arguments

ArgumentTypeRequired
sandboxIdID!Yes
pathString!Yes
cursorStringNo
limitIntNo

Response

Returns SandboxFileCollection!. Open the type for its fields and nested types.

FieldTypeDescription
data[SandboxFileEntry!]!Directory entries at the selected path.
pageInfoSandboxPageInfo!

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
query SandboxFiles($sandboxId: ID!, $path: String!, $cursor: String, $limit: Int) {
  sandboxFiles(sandboxId: $sandboxId, path: $path, cursor: $cursor, limit: $limit) {
    data {
      path
      sizeBytes
      type
    }
    pageInfo {
      hasNextPage
      endCursor
      first
      hasPreviousPage
      next
    }
  }
}
json
{
  "sandboxId": "00000000-0000-4000-8000-000000000001",
  "path": "example"
}