aWhere Manual
DevelopAPIitem-services

Items

The Item itself: what it is, where it is, who can open it, and what you can do with it.

GET
/api/item

Response Body

The service.

application/json
  1. response
@meta?

The name and version of the service that answered.

curl -X GET "https://platform.example.com/api/item"
{  "@meta": {}}
GET
/api/item/{id}

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Response Body

The Item and its routes.

application/json
  1. response
@meta?

The name and version of the service that answered.

type?string

The kind of Item.

routes?array<string>

The endpoints that the Item has.

data?

The Item.

curl -X GET "https://platform.example.com/api/item/$ITEM_ID" \  -H "Authorization: Bearer $TOKEN"
{  "@meta": {},  "type": "string",  "routes": [    "string"  ],  "data": {}}
GET
/api/item/{id}/actions

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Response Body

The answer.

application/json
  1. response
@meta?

The name and version of the service that answered.

type?unknown
routes?unknown
data?unknown
curl -X GET "https://platform.example.com/api/item/$ITEM_ID/actions" \  -H "Authorization: Bearer $TOKEN"
{  "@meta": {},  "type": null,  "routes": null,  "data": null}
GET
/api/item/{id}/details

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Response Body

The Item.

application/json
  1. response
@meta?

The name and version of the service that answered.

data?

The Item, with children for a folder.

curl -X GET "https://platform.example.com/api/item/$ITEM_ID/details" \  -H "Authorization: Bearer $TOKEN"
{  "@meta": {},  "data": {}}
GET
/api/item/{id}/location

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Response Body

The path.

application/json
  1. response
@meta?

The name and version of the service that answered.

data?array<>
curl -X GET "https://platform.example.com/api/item/$ITEM_ID/location" \  -H "Authorization: Bearer $TOKEN"
{  "@meta": {},  "data": [    {}  ]}
GET
/api/item/{id}/permission

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Response Body

The answer.

application/json
  1. response
@meta?

The name and version of the service that answered.

data?unknown
curl -X GET "https://platform.example.com/api/item/$ITEM_ID/permission" \  -H "Authorization: Bearer $TOKEN"
{  "@meta": {},  "data": null}
PUT
/api/item/{id}/permission

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Request Body

application/json
  1. body
permission?

The permission to set: who can open the Item and with which role.

recursive?boolean

Set it on everything inside a folder too.

Response Body

The id of the Item.

application/json
  1. response
@meta?

The name and version of the service that answered.

data?string
curl -X PUT "https://platform.example.com/api/item/$ITEM_ID/permission" \  -H "Authorization: Bearer $TOKEN" \  -H "Content-Type: application/json" \  -d '{  "permission": {},  "recursive": false}'
{  "@meta": {},  "data": "string"}
GET
/api/item/{id}/sharing/targets

Authorization

headerAuthorizationBearer <token>

An access token of an OAuth client: Authorization: Bearer <token>.

Path Parameters

id*string

The id of the Item.

Query Parameters

keyword?string

Words to look for.

excludeUsers?string
excludeGroups?string
skip?integer

How many to skip.

Default0
limit?integer

How many to return.

Default100

Response Body

The answer.

application/json
  1. response
@meta?

The name and version of the service that answered.

data?unknown
curl -X GET "https://platform.example.com/api/item/$ITEM_ID/sharing/targets" \  -H "Authorization: Bearer $TOKEN"
{  "@meta": {},  "data": null}