Creates a new asset

post/hardware

Request

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

Request body

asset_tagstring required

The asset tag of the asset. If auto-incrementing is enabled in the settings, this is not required and will be generated.

status_idinteger required

The id of the related status label

model_idinteger required

The id of the related asset model

namestring

Asset name

imagestring

data:[mime/type];base64,[base64encodeddata]

serialstring
purchase_datestring date
purchase_costnumber float
order_numberstring
notesstring
archivedboolean
warranty_monthsinteger
depreciateboolean
supplier_idinteger
requestableboolean
rtd_location_idinteger

The corresponding location_id from a location in the locations table that should indicate where the item is when it's NOT checked out to someone

last_audit_datestring date
location_idinteger
byodboolean

Response

200

OR

Example response

{
  "status": "success",
  "messages": "Asset created successfully. :)",
  "payload": {
    "model_id": 1,
    "asset_tag": "SNIPE-IT-RULES",
    "user_id": 2,
    "archived": "0",
    "physical": "1",
    "depreciate": "0",
    "status_id": 1,
    "updated_at": "2017-10-19 08:43:45",
    "created_at": "2017-10-19 08:43:45",
    "id": 180,
    "model": {
      "id": 1,
      "name": "Macbook Pro 13\"",
      "model_number": "4929525240061",
      "manufacturer_id": 1,
      "category_id": 1,
      "created_at": "2017-10-18 21:00:07",
      "updated_at": "2017-10-18 21:00:07",
      "depreciation_id": 1,
      "eol": 36,
      "notes": "Created by demo seeder"
    }
  }
}

Changes