Add Product
POST /axis/products/v1/add
Adds a product to the Axis system
Request Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| key | string | yes | The unique key identifying this product |
| name | string | yes | The name of this product |
| iconUrl | string | yes | The URL of the product's icon |
| enabled | boolean | yes | Flag indicating if the product is enabled or not |
| settings | map (string -> string) | A map of setting name to setting value | |
| languages | string array | yes | An array of ISO 639-1 language codes of languages the product supports |
Response
HTTP 200
Indicates the product was created. Returned body is the same as Get Product.
HTTP 400
Indicates that the request contained invalid data
HTTP 401
Indicates the user is not logged in
HTTP 403
Indicates the user is logged in but not permitted to add products to the system.
HTTP 500
Indicates an internal server error has occurred.
Edit Product
PUT /axis/products/v1/{product}
Updates a product in the Axis system
Request URL Parameters
| Name | Type | Description |
|---|---|---|
| product | string | The unique product |
Request Body Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| key | string | yes | The unique key identifying this product |
| name | string | yes | The name of this product |
| iconUrl | string | yes | The URL of the product's icon |
| enabled | boolean | yes | Flag indicating if the product is enabled or not |
| settings | map (string -> string) | A map of setting name to setting value | |
| languages | string array | yes | An array of ISO 639-1 language codes of languages the product supports |
Response
HTTP 200
Indicates the product was updated. Returned body is the same as Get Product.
HTTP 400
Indicates that the request contained invalid data
HTTP 401
Indicates the user is not logged in
HTTP 403
Indicates the user is logged in but not permitted to edit products in the system.
HTTP 500
Indicates an internal server error has occurred.
Get Product
GET /axis/products/v1/products/{product}
Returns the details of a specific product.
Request URL Parameters
| Name | Type | Description |
|---|---|---|
| product | string | The unique key identifying the product |
Response
HTTP 200
Indicates the request was successful. The result set contains a single product.
{
"success": true,
"message": null,
"product": {
// ... see Product in the Models section below
}
}
The data model for product listings is as follows
| Name | Type | Required | Description |
|---|---|---|---|
| success | boolean | true | True if the API call was successful |
| message | string | false | An optional message |
| products | Product array | true | The available products |
HTTP 401
Indicates the user is not logged in
{
"success": false,
"message": "You are not permitted to perform this action",
"errorId": "4aa089ed-4d45-4096-a55c-a2f694363ae5",
"code": 4,
"name": "SECURITY.NOT_AUTHORIZED"
}
HTTP 403
Indicates the user is logged in but not permitted to access product details.
HTTP 404
Indicates the product requested cannot be found
HTTP 500
Indicates an internal server error has occurred.
Get Products
GET /axis/products/v1/products/all
Returns all products that are available to the user.
Response
HTTP 200
Indicates the request was successful. The result set contains a list of products the user is permitted to use.
{
"success": true,
"message": null,
"product": {
// ... see Product in the Models section below
}
}
HTTP 401
Indicates the user is not logged in
{
"success": false,
"message": "You are not permitted to perform this action",
"errorId": "4aa089ed-4d45-4096-a55c-a2f694363ae5",
"code": 4,
"name": "SECURITY.NOT_AUTHORIZED"
}
HTTP 403
Indicates the user is logged in but not permitted to access product details.
HTTP 500
Indicates an internal server error has occurred.
Models
Product
| Name | Type | Required | Description |
|---|---|---|---|
| key | string | yes | The unique key for this product |
| name | string | yes | The name of this product |
| iconUrl | string | yes | The URL for the product's icon |
| enabled | boolean | yes | True if enabled, false otherwise |
| settings | map (string -> string) | no | Product settings (supplied for admin pages only) |
| languages | string array | yes | An array of ISO 639-1 language codes of languages the product supports |
| capabilities | map (string -> Product Capabilities) | yes | Product capabilities |
Product Capabilities
| Name | Type | Required | Description |
|---|---|---|---|
| label | string | yes | The localized string to be used as a label for the tab defined by these capabilities |
| displayable | string | yes | True if the tab is displayable, false otherwise |
| searches | map (string -> string) | no | A mapping of search key to localized label. Required for accounts tab. |
| fields | map (string -> Dynamic Data Field) | no | A mapping of field name to Dynamic Data Field |