Device42 Asset-Device Life Cycle API
The Asset-Device Life Cycle API from Device42 — 2 operation(s) for asset-device life cycle.
The Asset-Device Life Cycle API from Device42 — 2 operation(s) for asset-device life cycle.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/device42:device42-asset-device-life-cycle-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: Device42 Asset-Device Life Cycle API
version: '2.0'
description: 'API Overview
RESTful APIs are supported in Device42 as one of the primary methods of entering, editing and retrieving data.'
contact:
name: Device42
email: support@device42.com
servers:
- url: https://<host>
security:
- basicAuth: []
- bearerAuth: []
tags:
- name: Asset-Device Life Cycle
paths:
/api/1.0/lifecycle_event/:
get:
operationId: getLifecycle_event
description: Retrieve Life Cycle Events using filters - introduced in version 5.5.7
summary: Get All
tags:
- Asset-Device Life Cycle
parameters:
- name: type
description: filter by existing event type
in: query
schema:
type: string
- name: device
description: filter by device name
in: query
schema:
type: string
- name: asset
description: filter by asset name
in: query
schema:
type: string
- name: asset_id
in: query
description: filter by asset ID
schema:
type: string
- $ref: '#/components/parameters/enduser'
- $ref: '#/components/parameters/date_gt'
- $ref: '#/components/parameters/date_lt'
responses:
'200':
description: 'The above command returns results like this:'
content:
application/json:
schema:
properties:
lifecycle_events:
type: array
items:
properties:
date:
example: '2013-09-05T04:00:00Z'
asset_id:
example: 224
asset_name:
example: heart of gold
enduser:
example: H. Dent
notes:
example: R&D Dev Server
type:
example: Purchased
id:
example: 4
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
put:
operationId: putLifecycle_event
summary: Create/Update
description: Use this API to create/update life cycle events for devices or assets. Use device, device_id, asset_no, serial_no, or asset_id to indicate the device or asset the event is to be created for
tags:
- Asset-Device Life Cycle
requestBody:
content:
application/x-www-form-urlencoded:
schema:
type: object
properties:
id:
description: ID of lifecycle event. Required if updating an existing lifecycle event.
type: string
date:
description: in YYYY-MM-DD or<br>YYYY-MM-DD HH:MM format.
type: string
new_date:
description: New date to overwrite current date of lifecycle event.
type: string
type:
description: must be defined already in device42.
type: string
device:
description: Name of the device that the event is for
type: string
device_id:
description: ID of the device that the event is for
type: string
asset_no:
description: Asset number of the device that the event is for
type: string
serial_no:
description: Serial number of the device that the event is for
type: string
asset_id:
description: ID of the asset that the event is for
type: string
fully_qualified_username:
description: Fully Qualified Username
type: string
tags:
description: Comma separated list of tags to add to a lifecycle event.
type: string
tags_remove:
description: Comma separated tags to remove for a lifecycle event
type: string
enduser_id:
description: ID of the enduser. If enduser_id is provided then user and fully_qualified_name parameters are ignored
type: string
user:
description: enduser name
type: string
notes:
description: Any additional notes
type: string
required:
- date
- type
responses:
'200':
description: 'The above command returns results like this:'
content:
application/json:
schema:
properties:
msg:
example:
- lifecycle event added successfully.
- 3
- Installed on 2013-02-02 17:15:00
code:
example: 0
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
/api/1.0/lifecycle_event/{id}/:
get:
operationId: getLifecycle_eventID
description: Retrieve detailed information about a specific Lifecycle Event.
summary: Get Specific
tags:
- Asset-Device Life Cycle
parameters:
- name: id
in: path
required: true
description: The ID of the Lifecycle Event
schema:
type: integer
responses:
'200':
description: 'The above command returns results like this:'
content:
application/json:
schema:
properties:
lifecycle_event:
type: object
properties:
tags:
example: []
notes:
example: ''
date:
example: '2021-11-15T20:37:32Z'
device:
example: 0013548C-4308-4929-AF43-06D6B25D1B8C/marco-vm-azure
type:
example: Inventoried
id:
example: 1
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
delete:
operationId: deleteLifecycle_event
summary: Delete
description: This API is used to delete a specific Lifecycle Event
tags:
- Asset-Device Life Cycle
parameters:
- name: id
in: path
required: true
description: The ID of the Lifecycle Event
schema:
type: integer
responses:
'200':
description: 'The above command returns results like this:'
content:
application/json:
schema:
properties:
deleted:
example: 'true'
id:
example: '114'
'400':
$ref: '#/components/responses/BadRequest'
'401':
$ref: '#/components/responses/Unauthorized'
'403':
$ref: '#/components/responses/Forbidden'
'404':
$ref: '#/components/responses/NotFound'
'500':
$ref: '#/components/responses/InternalServerError'
'503':
$ref: '#/components/responses/ServiceUnavailable'
components:
responses:
Forbidden:
description: Forbidden (The resource requested is hidden)
content:
application/json:
example:
errors:
- code: 403
reason: Forbidden
title: Forbidden
detail: The resource requested is hidden
BadRequest:
description: Bad Request (A validation exception has occurred.)
content:
application/json:
example:
errors:
- code: 400
reason: BAD_REQUEST
title: The error response code title.
detail: Details of the error response.
Unauthorized:
description: Unauthorized (Invalid credentials.)
content:
application/json:
example:
errors:
- code: 401
reason: Unauthorized
title: Unauthorized
detail: Invalid credentials.
InternalServerError:
description: Internal Server Error (A required parameter is missing or there is an issue with the server. Check the returned 'msg' field from the call.)
content:
application/json:
example:
errors:
- code: 500
reason: Internal Server Error
title: Internal Server Error
detail: A required parameter is missing or there is an issue with the server. Check the returned 'msg' field from the call.
NotFound:
description: Not Found (The specified resource could not be found)
content:
application/json:
example:
errors:
- code: 404
reason: Not Found
title: Not Found
detail: The specified resource could not be found.
ServiceUnavailable:
description: Service Unavailable (Please check if your Device42 instance is working normally.)
content:
application/json:
example:
errors:
- code: 503
reason: Service Unavailable
title: Service Unavailable
detail: Please check if your Device42 instance is working normally.
parameters:
enduser:
name: enduser
in: query
description: filter by end user name
schema:
type: string
date_lt:
name: date_lt
in: query
description: filter by date less than (YYYY-MM-DD)
schema:
type: string
date_gt:
name: date_gt
in: query
description: filter by date greater than (YYYY-MM-DD)
schema:
type: string
securitySchemes:
basicAuth:
type: http
scheme: basic
description: Basic authentication using a Device42 user's username and password.
bearerAuth:
type: http
scheme: bearer
description: Bearer token obtained from POST /tauth/1.0/token/ using an API Client's key/secret as Basic auth credentials.