Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
snipe-it v4 object expansion
GET {{host}}/users/1
{
"id": 1,
"name": "Jason Spriggs",
"firstname": "Jason",
"lastname": "Spriggs",
"username": "admin",
"employee_num": "",
"manager": null,
"groups": [],
"jobtitle": "",
"email": "some-email@example.com",
"department": null,
"location": {
"id": 3,
"name": "Gaylord National Harbor",
"address": "",
"city": "",
"state": "",
"assets_checkedout": 0,
"assets_default": 1,
"country": "",
"assets": [],
"created_at": {
"datetime": "2017-07-07 03:24:52",
"formatted": "2017-07-07 3:24AM"
},
"updated_at": {
"datetime": "2017-07-07 03:24:52",
"formatted": "2017-07-07 3:24AM"
},
"parent_id": null,
"children": [],
"available_actions": {
"update": true,
"delete": true
}
},
"permissions": {
"superuser": 1
},
"activated": true,
"two_factor_activated": true,
"assets_count": 0,
"licenses_count": 0,
"accessories_count": 0,
"consumables_count": 0,
"company": null,
"created_at": {
"datetime": "2017-07-01 15:10:43",
"formatted": "2017-07-01 3:10PM"
},
"updated_at": {
"datetime": "2017-07-26 00:27:09",
"formatted": "2017-07-26 12:27AM"
},
"last_login": {
"datetime": "2017-07-26 00:27:09",
"formatted": "2017-07-26 12:27AM"
},
"available_actions": {
"update": true,
"delete": true,
"clone": true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment