Authority REST API - Asset Controller
The asset
URL provides bulk management of Assets.
Retrieve all Assets
Section titled “Retrieve all Assets”GET /asset
Retrieves all registered Assets.
Query Parameters
Section titled “Query Parameters”Parameter | Expected | Description |
---|---|---|
app | Optional | An Application identifier. Will only return Assets with context data for this Application. Can be specified multiple times to include additional Applications. |
Response
Section titled “Response”Code | Status | Description |
---|---|---|
200 | Success | Content is an array of Asset objects. |
422 | Failure | Invalid data was provided. Content is a JSON array of one or more error codes describing the problem. |
Add or update Assets
Section titled “Add or update Assets”POST /asset
Adds or updates multiple registered Assets simultaneously. The Context data will be merged with any existing registration.
POST Body
Section titled “POST Body”An array of Asset objects to add or update.
Response
Section titled “Response”Code | Status | Description |
---|---|---|
204 | Success | Completed successfully. |
422 | Failure | Invalid data was provided. Content is a JSON array of one or more error codes describing the problem. |