DeviceFolderListing
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/organizations/{organization_id}/devices/{device_registration_id}/folder_listings |
create |
Queued folder listing |
GET |
/api/v1/organizations/{organization_id}/devices/{device_registration_id}/folder_listings/{id} |
load |
Folder listing |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
device_folder_listing, err := client.DeviceFolderListing(nil).Load(map[string]any{"device_id": "example", "id": "example_id", "organization_id": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(device_folder_listing)
created, err := client.DeviceFolderListing(nil).Create(map[string]any{"device_id": "example", "organization_id": "example", "key": "example", "path": "example"}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local device_folder_listing, err = client:DeviceFolderListing():load({ device_id = "example", id = "example_id", organization_id = "example" })
local created, err = client:DeviceFolderListing():create({ device_id = "example", organization_id = "example", key = "example", path = "example" })
PHP
Construct client as shown in the PHP setup, then call the operations:
$device_folder_listing = $client->DeviceFolderListing()->load(["device_id" => "example", "id" => "example_id", "organization_id" => "example"]);
$created = $client->DeviceFolderListing()->create(["device_id" => "example", "organization_id" => "example", "key" => "example", "path" => "example"]);
Python
Construct client as shown in the Python setup, then call the operations:
device_folder_listing = client.DeviceFolderListing().load({"device_id": "example", "id": "example_id", "organization_id": "example"})
created = client.DeviceFolderListing().create({ "device_id": "example", "organization_id": "example", "key": "example", "path": "example" })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
device_folder_listing = client.DeviceFolderListing.load({ "device_id" => "example", "id" => "example_id", "organization_id" => "example" })
created = client.DeviceFolderListing.create({ "device_id" => "example", "organization_id" => "example", "key" => "example", "path" => "example" })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const device_folder_listing = await client.DeviceFolderListing().load({ device_id: "example", id: "example_id", organization_id: "example" })
const created = await client.DeviceFolderListing().create({ device_id: "example", organization_id: "example", key: "example", path: "example" })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
code |
string |
No | Code |
error |
string |
No | Error |
folders |
array |
No | Folders |
id |
string |
Yes | Id |
key |
string |
Yes | Stable idempotency key for this listing. |
parent |
one,string,null |
No | Parent |
path |
string |
No | The resolved folder. |
state |
string |
Yes | State |
truncated |
boolean |
No | Truncated |
create
POST /api/v1/organizations/{organization_id}/devices/{device_registration_id}/folder_listings
Operation ID: deviceFolderListingCreate.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_registration_id |
path |
string |
Yes |
Request body
application/json
| Property | Type | Required | Description |
|---|---|---|---|
key |
string |
Yes | Stable idempotency key for this listing. |
path |
string |
Yes | A folder starting with ~ or /. |
Responses
202: Queued folder listing
application/json
| Property | Type | Required | Description |
|---|---|---|---|
listing |
object |
Yes | |
listing.code |
string |
No | |
listing.error |
string |
No | |
listing.folders |
array of string |
No | |
listing.id |
string |
Yes | |
listing.parent |
string,null |
No | |
listing.path |
string |
No | The resolved folder. |
listing.state |
enum: queued, claimed, completed, failed, expired, uncertain |
Yes | |
listing.truncated |
boolean |
No |
400: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
401: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
409: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
422: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
503: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
load
GET /api/v1/organizations/{organization_id}/devices/{device_registration_id}/folder_listings/{id}
Operation ID: deviceFolderListingShow.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
organization_id |
path |
string |
Yes | |
device_registration_id |
path |
string |
Yes | |
id |
path |
string |
Yes |
Responses
200: Folder listing
application/json
| Property | Type | Required | Description |
|---|---|---|---|
listing |
object |
Yes | |
listing.code |
string |
No | |
listing.error |
string |
No | |
listing.folders |
array of string |
No | |
listing.id |
string |
Yes | |
listing.parent |
string,null |
No | |
listing.path |
string |
No | The resolved folder. |
listing.state |
enum: queued, claimed, completed, failed, expired, uncertain |
Yes | |
listing.truncated |
boolean |
No |
401: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
403: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |
404: Request refused or computer unavailable
application/json
| Property | Type | Required | Description |
|---|---|---|---|
details |
array of string |
No | |
error |
string |
Yes | |
field_errors |
object |
No |