Updates a specific asset

put/hardware/{id}

Request

  • Base URL
    https://develop.snipeitapp.com/api/v1
  • URL
    https://develop.snipeitapp.com/api/v1/hardware/{id}
  • Auth
    none required

Path parameters

idinteger required

The id of the asset you'd like to query

Request body

asset_tagstring required

Unique asset tag of the asset

status_idinteger required

The id of the corresponding status label

model_idinteger required

The id of the associated asset model id

notesstring

Asset notes

last_checkoutstring date

Date the asset was last checked out

assigned_userinteger

The ID of the user the asset should be checked out to

assigned_locationinteger

Thye ID of the user the location the asset should be checked out to

assigned_assetinteger

Thye ID of the other asset this asset should be checked out to

company_idinteger

The id of an associated company id

serialstring

Serial number of the asset

order_numberstring

Order number for the asset

warranty_monthsinteger

Number of months for the asset warranty

purchase_costnumber float

Purchase cost of the asset, without a currency symbol

purchase_datestring date

Date of asset purchase

requestableboolean

Whether or not the asset can be requested by users with the permission to request assets

archivedboolean

Whether or not the asset is archived. Archived assets cannot be checked out and do not show up in the deployable asset screens

rtd_location_idinteger

The id that corresponds to the location where the asset is usually located when not checked out

namestring

Asset name

location_idinteger
imagestring binary
byodinteger

Response

200

statusstring
messagesstring

Example response

{
  "status": "success",
  "messages": "Asset updated successfully."
}

Changes