/users/:id/accessories

Changed on

Get a list of accessories checked out to the user

get/users/{id}/accessories

Request

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

Path parameters

idinteger required

User id

Response

200

totalinteger

Example response

{
  "total": 1,
  "rows": [
    {
      "id": 1,
      "name": "USB Keyboard",
      "manufacturer": {
        "id": 1,
        "name": "Apple"
      },
      "supplier": {
        "id": 2,
        "name": "Block and Sons"
      },
      "model_number": "41230142",
      "category": {
        "id": 8,
        "name": "Keyboards"
      },
      "location": {
        "id": 4,
        "name": "East Caseyhaven"
      },
      "qty": 15,
      "min_qty": 2,
      "remaining_qty": 14,
      "image": "https://snipe-it.local:8890/uploads/accessories/usb-keyboard.jpg",
      "created_at": {
        "datetime": "2018-12-05 15:37:21",
        "formatted": "2018-12-05 03:37 PM"
      },
      "updated_at": {
        "datetime": "2018-12-05 15:37:21",
        "formatted": "2018-12-05 03:37 PM"
      },
      "available_actions": {
        "checkout": true,
        "update": true,
        "delete": true
      },
      "user_can_checkout": true
    }
  ]
}

Changes