Products
Read
Read product details | ||
type | object | |
properties | ||
| The product unique identifier. Product Unique ID | |
type | string (UUID) | |
Response
type | object | |
properties | ||
| Unique ID | |
type | string (UUID) | |
| Enabled | |
type | boolean | |
| Name | |
type | string | |
Example request
GET https://interay.io/api/v1/products/get?product=00000000-0000-0000-0000-000000000000
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Example response
200 OK
Content-Type: application/json
{
"displayName": "Docs",
"uid": "00000000-0000-0000-0000-000000000000",
"enabled": true,
"link": "https://interay.io/admin/products/00000000-0000-0000-0000-000000000000",
"name": "Docs"
}
Read List
Read products details | ||
type | object | |
properties | ||
| The parent unique identifier. Product Unique ID / Location Unique ID | |
type | string (UUID) | |
| Zero-based result index (pagination offset) | |
type | number | |
default | 0 | |
| Maximum number of results (pagination limit) | |
type | number | |
default | unlimited | |
| Search query | |
type | string | |
Response
type | array | ||
items | type | object | |
properties | |||
| Unique ID | ||
type | string (UUID) | ||
| Enabled | ||
type | boolean | ||
| Name | ||
type | string | ||
Notes
All products are listed in the result when no entity or q is specified.
Search query is partially matching the product name or parent name.
Example request
GET https://interay.io/api/v1/products/list
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Example response
200 OK
Content-Type: application/json
[
{
"displayName": "Docs",
"uid": "00000000-0000-0000-0000-000000000000",
"enabled": true,
"link": "https://interay.io/admin/products/00000000-0000-0000-0000-000000000000",
"name": "Docs"
}
]
Write
Write product details | |||
type | object | ||
properties | |||
| The product unique identifier. Product Unique ID | ||
type | string (UUID) | ||
| The product details | ||
type | object | ||
properties | |||
| Enabled | ||
type | boolean | ||
| Name | ||
type | string | ||
Notes
Only specified details with a different value are overwritten. Existing non-specified details are preserved.
Example request
POST https://interay.io/api/v1/products/set
Authorization: Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
Content-Type: application/json
{
"entity": "00000000-0000-0000-0000-000000000000",
"values": {
"enabled": true,
"name": "Docs",
}
}
Example response
200 OK