Introduction
+This documentation aims to provide the information you need to work with the Snipe-IT JSON REST API.
+ + + +Authenticating requests
+To authenticate requests, include an Authorization header with the value "Bearer your-token".
All authenticated endpoints are marked with a requires authentication badge in the documentation below.
If your account has API access enabled, you can generate a token by clicking in the top right account menu and clicking API tokens.
+ +Accessories
+ + + +Show Accessory Checkouts
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/accessories/1/checkedout" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/1/checkedout"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/1/checkedout';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/1/checkedout'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=QwqPH3txF8T3F17zuocUxlzlAourAOPvfWbLeuj9; expires=Sat, 18 Oct 2025 20:42:51 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkout Accessory
+ ++requires authentication +
+ +If Slack is enabled and/or asset acceptance is enabled, it will also +trigger a Slack message and send an email.
+ + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/accessories/1/checkout" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/1/checkout"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/1/checkout';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/1/checkout'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkin Accessory
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/accessories/1/checkin" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/1/checkin"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/1/checkin';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/1/checkin'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/accessories/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=kCGqdKxExAZopEwv7oy5l7SRnyqXXXDCU5Jyu7jU; expires=Sat, 18 Oct 2025 20:42:51 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List accessories
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/accessories?search=keyboard&filter%5B%3Cfieldname%3E%5D=architecto&company_id=1&category_id=1&manufacturer_id=1&supplier_id=1&location_id=1¬es=For+office+use+only&offset=0&limit=50&sort=created_at&order=desc" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories"
+);
+
+const params = {
+ "search": "keyboard",
+ "filter[<fieldname>]": "architecto",
+ "company_id": "1",
+ "category_id": "1",
+ "manufacturer_id": "1",
+ "supplier_id": "1",
+ "location_id": "1",
+ "notes": "For office use only",
+ "offset": "0",
+ "limit": "50",
+ "sort": "created_at",
+ "order": "desc",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'keyboard',
+ 'filter[<fieldname>]' => 'architecto',
+ 'company_id' => '1',
+ 'category_id' => '1',
+ 'manufacturer_id' => '1',
+ 'supplier_id' => '1',
+ 'location_id' => '1',
+ 'notes' => 'For office use only',
+ 'offset' => '0',
+ 'limit' => '50',
+ 'sort' => 'created_at',
+ 'order' => 'desc',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories'
+params = {
+ 'search': 'keyboard',
+ 'filter[<fieldname>]': 'architecto',
+ 'company_id': '1',
+ 'category_id': '1',
+ 'manufacturer_id': '1',
+ 'supplier_id': '1',
+ 'location_id': '1',
+ 'notes': 'For office use only',
+ 'offset': '0',
+ 'limit': '50',
+ 'sort': 'created_at',
+ 'order': 'desc',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=2HABGaRbPqMGeiNPKWTPnN0AwM4t7W2yN4TFOJqm; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Accessory
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/accessories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"name\": \"Apple Bluetooth Keyboard\",
+ \"qty\": 10,
+ \"category_id\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "name": "Apple Bluetooth Keyboard",
+ "qty": 10,
+ "category_id": 1
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'name' => 'Apple Bluetooth Keyboard',
+ 'qty' => 10,
+ 'category_id' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories'
+payload = {
+ "name": "Apple Bluetooth Keyboard",
+ "qty": 10,
+ "category_id": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Accessory
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/accessories/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=1Tv5gekmNofKNDwolDkOEcEH9JUfM9rX0PaTFfWI; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update accessory.
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/accessories/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Accessory
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/accessories/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Account
+ + + +Display Requested Assets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/account/requests" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/requests"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/requests';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/requests'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=qIWm6chVMaJXUcKG9E8EHhnb7F9wQT14AjEraiFE; expires=Sat, 18 Oct 2025 20:42:51 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display Accepted EULAs
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/account/eulas" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/eulas"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/eulas';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/eulas'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=nhItaWioeRLO0dKBgjno1X73ttHn50uXRQ7L7BAc; expires=Sat, 18 Oct 2025 20:42:51 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store Asset Request
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/account/request/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/request/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/request/1';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/request/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Cancel Asset Request
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/account/request/1/cancel" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/request/1/cancel"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/request/1/cancel';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/request/1/cancel'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create API token
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show API tokens
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=yUjH3zpUXM18qZVCvvVEp1y5zfNNok8NctCrwGof; expires=Sat, 18 Oct 2025 20:42:51 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete API token
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/personal-access-tokens/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Assets
+ + + +Show Requestable Assets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/account/requestable/hardware" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/account/requestable/hardware"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/account/requestable/hardware';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/account/requestable/hardware'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=9bkg2C4WhllCWmz0TI3hJlkOmzBIHtZh8c9EhOQi; expires=Sat, 18 Oct 2025 20:42:51 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Assets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/reports/depreciation?assigned_type=user&byod=1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/reports/depreciation"
+);
+
+const params = {
+ "assigned_type": "user",
+ "byod": "1",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/reports/depreciation';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'assigned_type' => 'user',
+ 'byod' => '1',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/reports/depreciation'
+params = {
+ 'assigned_type': 'user',
+ 'byod': '1',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=1RCnTHUFbqwTIQa5a3jw9Z163XXINM8alyMsLk0F; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=0J6iH1gl0c15eGQzbr0AXYKNPWvATyX8x6OsoSrW; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Licenses Assigned to Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/architecto/licenses?%24assetId=1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/licenses"
+);
+
+const params = {
+ "$assetId": "1",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/licenses';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ '$assetId' => '1',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/licenses'
+params = {
+ '$assetId': '1',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=fG7jXtcAYCvTOFyyGxGIuUODAbj1PT5ZAaug4SRy; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Lookup by Tag
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/bytag/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/bytag/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=JUM59W5u4D1Jdj1Ai98JgFlM3Ts8igVm7P7mFeXB; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Lookup by Tag
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/bytag/|{+-0p" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/bytag/|{+-0p"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/|{+-0p';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/|{+-0p'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=VJrksR9BVpURY1sWO0ib6MKfDb6nIxMa2pVIQr5p; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkout by Asset Tag
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkout" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkout"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkout';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkout'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkin by Asset Tag
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkin" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkin"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkin';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/bytag/architecto/checkin'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkin by Asset Tag
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/checkinbytag" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/checkinbytag"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/checkinbytag';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/checkinbytag'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Lookup by Serial
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/byserial/|{+-0p" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/byserial/|{+-0p"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/byserial/|{+-0p';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/byserial/|{+-0p'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=llOTTmFchjax52EyYJzjxhiyZiEXIBU0ZcfnoN6T; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Assets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/audit|audits|checkins/due|overdue|due-or-overdue?assigned_type=user&byod=1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/audit|audits|checkins/due|overdue|due-or-overdue"
+);
+
+const params = {
+ "assigned_type": "user",
+ "byod": "1",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/audit|audits|checkins/due|overdue|due-or-overdue';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'assigned_type' => 'user',
+ 'byod' => '1',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/audit|audits|checkins/due|overdue|due-or-overdue'
+params = {
+ 'assigned_type': 'user',
+ 'byod': '1',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=jun9NCBvUvQJXjBPXHEgZB9NPzF1mS6NTwzDmHDe; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Audit Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/audit" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/audit"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/audit';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/audit'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Audit Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/1/audit" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/1/audit"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/audit';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/audit'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkin Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkin" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkin"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkin';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkin'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkout Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkout" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkout"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkout';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/checkout'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Restore Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/restore" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto/restore"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/restore';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto/restore'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Assets Assigned to Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/assets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/assets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/assets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/assets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=DIPJZUWSuyNUFLyBNwFMer4zkxMi0tReW3dy4QPK; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Accessories Assigned to Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/accessories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/accessories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/accessories';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/accessories'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=F9Wogg2lFVX0DlkB6ZfYreUAmJeGi8jFA5O8VrAI; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Components Assigned to Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/components" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/components"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/components';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/1/assigned/components'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=bKDaNYTiCn9wzCQETCLfjwUEaIXEpCWfmHVEAfUz; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PATCH \
+ "https://snipe-it.test/api/v1/api/v1/hardware/1?model_id=1&company_id=1&rtd_location_id=1&last_audit_date=2023-12-31&image=%28binary%29" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/1"
+);
+
+const params = {
+ "model_id": "1",
+ "company_id": "1",
+ "rtd_location_id": "1",
+ "last_audit_date": "2023-12-31",
+ "image": "(binary)",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PATCH",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/1';
+$response = $client->patch(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'model_id' => '1',
+ 'company_id' => '1',
+ 'rtd_location_id' => '1',
+ 'last_audit_date' => '2023-12-31',
+ 'image' => '(binary)',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/1'
+params = {
+ 'model_id': '1',
+ 'company_id': '1',
+ 'rtd_location_id': '1',
+ 'last_audit_date': '2023-12-31',
+ 'image': '(binary)',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PATCH', url, headers=headers, params=params)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/hardware/1?model_id=1&company_id=1&rtd_location_id=1&last_audit_date=2023-12-31&image=%28binary%29" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/1"
+);
+
+const params = {
+ "model_id": "1",
+ "company_id": "1",
+ "rtd_location_id": "1",
+ "last_audit_date": "2023-12-31",
+ "image": "(binary)",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'model_id' => '1',
+ 'company_id' => '1',
+ 'rtd_location_id' => '1',
+ 'last_audit_date' => '2023-12-31',
+ 'image' => '(binary)',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/1'
+params = {
+ 'model_id': '1',
+ 'company_id': '1',
+ 'rtd_location_id': '1',
+ 'last_audit_date': '2023-12-31',
+ 'image': '(binary)',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers, params=params)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Assets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware?assigned_type=user&byod=1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware"
+);
+
+const params = {
+ "assigned_type": "user",
+ "byod": "1",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'assigned_type' => 'user',
+ 'byod' => '1',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware'
+params = {
+ 'assigned_type': 'user',
+ 'byod': '1',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=OpEopdxJjQ1quNst6C1aE9VzEFgonGA6WTKO283D; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/hardware/architecto?%24assetId=1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto"
+);
+
+const params = {
+ "$assetId": "1",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ '$assetId' => '1',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto'
+params = {
+ '$assetId': '1',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=DivpAbTSWduaC7mBZSElSCp2pLYXeny0mPAaJbuq; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Asset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Generate Label by Asset Tag
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/hardware/labels" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/hardware/labels"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/hardware/labels';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/hardware/labels'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Categories
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/categories/architecto/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/categories/architecto/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=Wy5FSLyBn1xpLQy08hVrBlmoANJohF4ZIzpEcIZy; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Categories
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/categories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/categories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/categories';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/categories'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=ErvltKvHZdVobMWCabFa83cWRCOTTtIgAPf7kLWS; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Category
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/categories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/categories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/categories';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/categories'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Category
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/categories/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/categories/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=V2YFWiG0waCLFesMFr3kkLb0Io41yz4MPzVEfytq; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Category
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/categories/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/categories/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Category
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/categories/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/categories/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/categories/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Companies
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/companies/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/companies/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/companies/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/companies/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=IqjgsK1DVTQS5qlZI7l96rTJH0m95aILfWx6eAS2; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Companies
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/companies" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/companies"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/companies';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/companies'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=cEVlfAwtjQtu004rU9aEgFwcozHbApb3l0gEpL3C; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Company
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/companies" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/companies"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/companies';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/companies'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Company
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/companies/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/companies/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/companies/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/companies/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=YqczMPKZfCp7CKkULGsRoDqufIWQ9yGkni3Cto4R; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Company
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/companies/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/companies/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/companies/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/companies/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Company
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/companies/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/companies/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/companies/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/companies/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Components
+ + + +Component Assets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/components/3/assets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components/3/assets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components/3/assets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components/3/assets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=wiPOiV7Xae1fyzS2Jv3w9d060WDRgnET70IrBjTj; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkin Component
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/components/3/checkin" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components/3/checkin"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components/3/checkin';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components/3/checkin'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkout Component
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/components/3/checkout" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"assigned_to\": \"architecto\"
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components/3/checkout"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "assigned_to": "architecto"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components/3/checkout';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'assigned_to' => 'architecto',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components/3/checkout'
+payload = {
+ "assigned_to": "architecto"
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Categories
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/components" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=vXpBDH4e4puagaeAOAWHnpHEOQ7rCwXKeEDeGn5W; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Component
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/components" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Component
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/components/3" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components/3"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components/3';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components/3'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=mIFtURJNZowrCIpSMAMYNVYW5XvKIReOCIJ57XgL; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Component
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/components/3" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components/3"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components/3';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components/3'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Component
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/components/3" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/components/3"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/components/3';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/components/3'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Consumables
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/consumables/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=9SzZeaG6J8yoJtsrcqY5kJPcLvX7ObZeYK0JivkB; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ User Assignments
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/consumables/1/users" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables/1/users"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables/1/users';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables/1/users'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=eO7NKRGNCHJ34NL6woGI5Ux80o2tg9rIBW0LuGGd; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Checkout Consumable
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/consumables/1/checkout" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables/1/checkout"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables/1/checkout';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables/1/checkout'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Consumables
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/consumables?filter=%7B%22company%22%3A%221%22%2C%22location%22%3A%222%22%7D&search=architecto&name=architecto&company_id=16&category_id=16&model_number=architecto&manufacturer_id=16&supplier_id=16&location_id=16¬es=architecto&sort=architecto&order=architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables"
+);
+
+const params = {
+ "filter": "{"company":"1","location":"2"}",
+ "search": "architecto",
+ "name": "architecto",
+ "company_id": "16",
+ "category_id": "16",
+ "model_number": "architecto",
+ "manufacturer_id": "16",
+ "supplier_id": "16",
+ "location_id": "16",
+ "notes": "architecto",
+ "sort": "architecto",
+ "order": "architecto",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'filter' => '{"company":"1","location":"2"}',
+ 'search' => 'architecto',
+ 'name' => 'architecto',
+ 'company_id' => '16',
+ 'category_id' => '16',
+ 'model_number' => 'architecto',
+ 'manufacturer_id' => '16',
+ 'supplier_id' => '16',
+ 'location_id' => '16',
+ 'notes' => 'architecto',
+ 'sort' => 'architecto',
+ 'order' => 'architecto',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables'
+params = {
+ 'filter': '{"company":"1","location":"2"}',
+ 'search': 'architecto',
+ 'name': 'architecto',
+ 'company_id': '16',
+ 'category_id': '16',
+ 'model_number': 'architecto',
+ 'manufacturer_id': '16',
+ 'supplier_id': '16',
+ 'location_id': '16',
+ 'notes': 'architecto',
+ 'sort': 'architecto',
+ 'order': 'architecto',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=WMv6quPUXaLnZTkEXk5aBwdTDMuUgt7fQTd6uLZf; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/consumables" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Consumable
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/consumables/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=oTfWSAjrq9p5g7qEYt7eFY4Dl7io060HverF1daF; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Consumable
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/consumables/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Consumable
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/consumables/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/consumables/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/consumables/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/consumables/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Custom Fields
+ + + +Reorder Fields
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fields/fieldsets/architecto/order" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields/fieldsets/architecto/order"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields/fieldsets/architecto/order';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields/fieldsets/architecto/order'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Add Field to Fieldset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto/associate" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto/associate"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto/associate';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto/associate'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove Field from Fieldset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto/disassociate" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto/disassociate"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto/disassociate';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto/disassociate'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Custom Fields
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/fields" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=MTrOxDhLsWMBw1aLYKK9q1GA3VjT43PhCRp7KBa9; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Field
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fields" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Field
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/fields/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=jdlBn85i46xp3MdUb7Dbb1igonFqeCNdzQwTOmnl; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Field
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Field
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fields/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fields/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Custom Fieldsets
+Show Fields in Fieldset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Fields in Fieldset with Default Values for Model
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields/architecto';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto/fields/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Fieldsets
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/fieldsets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=DtH1Q5VV2HTu9NhlX5CxdYBImN4ZqxolMxRmhDyk; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Fieldset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/fieldsets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Fieldset and Fields
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=haApTgbAdDCFdvIN3hU8DshPXbfKMRdlXqBMBKdM; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Fieldset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Fieldset
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/fieldsets/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/fieldsets/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Departments
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/departments/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/departments/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/departments/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/departments/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=0Ld2mnJEdBRIaREXQ37xGTuIS9SWJ4pT3WC79wc3; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Departments
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/departments?search=IT&name=IT&company_id=1&manager_id=16&location_id=1&sort=name&order=asc&offset=0&limit=50" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/departments"
+);
+
+const params = {
+ "search": "IT",
+ "name": "IT",
+ "company_id": "1",
+ "manager_id": "16",
+ "location_id": "1",
+ "sort": "name",
+ "order": "asc",
+ "offset": "0",
+ "limit": "50",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/departments';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'IT',
+ 'name' => 'IT',
+ 'company_id' => '1',
+ 'manager_id' => '16',
+ 'location_id' => '1',
+ 'sort' => 'name',
+ 'order' => 'asc',
+ 'offset' => '0',
+ 'limit' => '50',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/departments'
+params = {
+ 'search': 'IT',
+ 'name': 'IT',
+ 'company_id': '1',
+ 'manager_id': '16',
+ 'location_id': '1',
+ 'sort': 'name',
+ 'order': 'asc',
+ 'offset': '0',
+ 'limit': '50',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=A3I9GYZHlismQEeDjfx7XM9EFccWImskxth6x9OH; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Department
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/departments" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/departments"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/departments';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/departments'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Department
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/departments/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/departments/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/departments/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/departments/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=f5nA1I31NqT4m4T3BeSDmKt2LuBQs7KtcZZNRDKq; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Department
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/departments/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/departments/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/departments/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/departments/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Department
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/departments/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/departments/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/departments/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/departments/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Depreciations
+ + + +List Depreciations
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/depreciations" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/depreciations"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/depreciations';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/depreciations'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=TaZAI56rS9h74YByHlSA9ZrXGsTjQD4onwKaqiFF; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Depreciation
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/depreciations" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/depreciations"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/depreciations';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/depreciations'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Depreciation
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/depreciations/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/depreciations/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/depreciations/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/depreciations/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=qFky4u180BfuHQB1d4a5A7K5Q4MOHcVdqELFA4ow; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Depreciation
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/depreciations/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/depreciations/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/depreciations/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/depreciations/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Depreciation
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/depreciations/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/depreciations/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/depreciations/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/depreciations/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Files
+ + + +List Files for an Object
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=HfR9HTwK8SuIGE2OuiaImTbUpBhp1HtUBHMeilHy; expires=Sat, 18 Oct 2025 20:42:53 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Display File
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=N688uqN5BWG2WKvT3v6TxAJAl1Il05lzaTycQ40x; expires=Sat, 18 Oct 2025 20:42:53 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Upload File to an Object
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete File
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto/delete" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto/delete"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto/delete';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/accessories|assets|components|consumables|hardware|licenses|locations|maintenances|models|users/architecto/files/architecto/delete'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Imports
+ + + +Process Import
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/imports/process/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/imports/process/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/imports/process/architecto';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/imports/process/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Import Files
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/imports" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/imports"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/imports';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/imports'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=lj8o7doJNMvuEIVNyZKehmNRHGnHDPN2afmwMD6i; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Save Import File
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/imports" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/imports"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/imports';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/imports'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Import File
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/imports/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/imports/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/imports/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/imports/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Labels
+ + + +Show Label
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/labels/|{+-0p" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/labels/|{+-0p"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/labels/|{+-0p';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/labels/|{+-0p'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=rEUcrmsA92vKXWOMa9gjkZircoRHtwh2NGzh46Ym; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Labels
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/labels" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/labels"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/labels';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/labels'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=uOfOzJMa5lIhRnkxrSV7W6Lh6At2caeav8pgRq3i; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Licenses
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/licenses/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=WCUA668q64Tb6nEAAMH6QDj0KxiWwfnKfCVC1WL5; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Licenses
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/licenses?status=%3Fstatus%3Dactive&company_id=1&name=Microsoft+365&product_key=W269N&order_number=12345&purchase_order=PO12345&license_name=John+Doe&license_email=john.d" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses"
+);
+
+const params = {
+ "status": "?status=active",
+ "company_id": "1",
+ "name": "Microsoft 365",
+ "product_key": "W269N",
+ "order_number": "12345",
+ "purchase_order": "PO12345",
+ "license_name": "John Doe",
+ "license_email": "john.d",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'status' => '?status=active',
+ 'company_id' => '1',
+ 'name' => 'Microsoft 365',
+ 'product_key' => 'W269N',
+ 'order_number' => '12345',
+ 'purchase_order' => 'PO12345',
+ 'license_name' => 'John Doe',
+ 'license_email' => 'john.d',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses'
+params = {
+ 'status': '?status=active',
+ 'company_id': '1',
+ 'name': 'Microsoft 365',
+ 'product_key': 'W269N',
+ 'order_number': '12345',
+ 'purchase_order': 'PO12345',
+ 'license_name': 'John Doe',
+ 'license_email': 'john.d',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=FsSfFEzLbFI2oqcTFwXV523YHYRteVgVbhwU1KjU; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create License
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/licenses" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show License
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/licenses/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=fr7kJMaaASq4b53DwioCqOIG1A7k7COxiBsYFjXL; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update License
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/licenses/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete License
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/licenses/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ License Seats
+List License Seats
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/licenses/1/seats" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/1/seats"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/1/seats';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/1/seats'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=StfngPkbKXNpOhusZSc3gJVfFrY1dHeurAa4otwt; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show License Seat
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=4NcQjrTDkyy5Ps1lwLlvwwkW8zLNdvkt4jLniAbj; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update License Seat
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/licenses/1/seats/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Locations
+ + + +Gets a paginated collection for the select2 menus
+ ++requires authentication +
+ +This is handled slightly differently as of ~4.7.8-pre, as +we have to do some recursive magic to get the hierarchy to display +properly when looking at the parent/child relationship in the +rich menus.
+This means we can't use the normal pagination that we use elsewhere +in our selectlists, since we have to get the full set before we can +determine which location is parent/child/grandchild, etc.
+This also means that hierarchy display gets a little funky when people +use the Select2 search functionality, but there's not much we can do about +that right now.
+As a result, instead of paginating as part of the query, we have to grab +the entire data set, and then invoke a paginator manually and pass that +through to the SelectListTransformer.
+Many thanks to @uberbrady for the help getting this working better. +Recursion still sucks, but I guess he doesn't have to get in the +sea... this time.
+ + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/locations/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=UpVwalXoUKqNpdc1JZOoxLIbtfuGTDjmXv2FL0U4; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Assets with Default Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/locations/1/assets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/1/assets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/1/assets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/1/assets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=s6eLrXoHfx9aHRHsGokhuXGIfcWMyMK6s8Y7CuQb; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Assets Assigned to Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/locations/1/assigned/assets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/1/assigned/assets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/1/assigned/assets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/1/assigned/assets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=6IjNjFVBRoxfcpk3lgt97JCcwcwkJ18MblUUArEa; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Accessories Assigned to Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/locations/1/assigned/accessories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/1/assigned/accessories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/1/assigned/accessories';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/1/assigned/accessories'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=8QVLWPz9VFdTVM9oelFsOvXEnefwKOeIuos7D23G; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Locations
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/locations?search=Headquarters&name=Headquarters&address=123+Main+St&address2=Suite+100&city=Springfield&zip=12345&country=USA&manager_id=1&company_id=1&parent_id=1&status=active&sort=name&order=asc" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations"
+);
+
+const params = {
+ "search": "Headquarters",
+ "name": "Headquarters",
+ "address": "123 Main St",
+ "address2": "Suite 100",
+ "city": "Springfield",
+ "zip": "12345",
+ "country": "USA",
+ "manager_id": "1",
+ "company_id": "1",
+ "parent_id": "1",
+ "status": "active",
+ "sort": "name",
+ "order": "asc",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'Headquarters',
+ 'name' => 'Headquarters',
+ 'address' => '123 Main St',
+ 'address2' => 'Suite 100',
+ 'city' => 'Springfield',
+ 'zip' => '12345',
+ 'country' => 'USA',
+ 'manager_id' => '1',
+ 'company_id' => '1',
+ 'parent_id' => '1',
+ 'status' => 'active',
+ 'sort' => 'name',
+ 'order' => 'asc',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations'
+params = {
+ 'search': 'Headquarters',
+ 'name': 'Headquarters',
+ 'address': '123 Main St',
+ 'address2': 'Suite 100',
+ 'city': 'Springfield',
+ 'zip': '12345',
+ 'country': 'USA',
+ 'manager_id': '1',
+ 'company_id': '1',
+ 'parent_id': '1',
+ 'status': 'active',
+ 'sort': 'name',
+ 'order': 'asc',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=OrGO92pRr2bN1MO0HEk74EaOyIBpyNWW8nBBM9w1; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/locations" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/locations/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=r40jhYlCjVborgeetW7XFFJzC3FPckbK3wiqaq9b; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/locations/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Location
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/locations/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/locations/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/locations/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/locations/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Maintenances
+ + + +List Maintenances
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/maintenances?search=repair&asset_id=1&supplier_id=1&created_by=16&url=http%3A%2F%2Fexample.com&asset_maintenance_type=repair&sort=name&order=asc&offset=0&limit=50" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/maintenances"
+);
+
+const params = {
+ "search": "repair",
+ "asset_id": "1",
+ "supplier_id": "1",
+ "created_by": "16",
+ "url": "http://example.com",
+ "asset_maintenance_type": "repair",
+ "sort": "name",
+ "order": "asc",
+ "offset": "0",
+ "limit": "50",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/maintenances';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'repair',
+ 'asset_id' => '1',
+ 'supplier_id' => '1',
+ 'created_by' => '16',
+ 'url' => 'http://example.com',
+ 'asset_maintenance_type' => 'repair',
+ 'sort' => 'name',
+ 'order' => 'asc',
+ 'offset' => '0',
+ 'limit' => '50',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/maintenances'
+params = {
+ 'search': 'repair',
+ 'asset_id': '1',
+ 'supplier_id': '1',
+ 'created_by': '16',
+ 'url': 'http://example.com',
+ 'asset_maintenance_type': 'repair',
+ 'sort': 'name',
+ 'order': 'asc',
+ 'offset': '0',
+ 'limit': '50',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=HIPWn994ZVwWTllISCuyT1n0vLjhvE6GtJdyvVt5; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Maintenance
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/maintenances" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/maintenances"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/maintenances';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/maintenances'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ View Maintenance
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/maintenances/2" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/maintenances/2"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/maintenances/2';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/maintenances/2'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=SMRgTfJyiKW4MwqoQkxPhRwZ7s0NG6iXfqrgvOF3; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Maintenance
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/maintenances/2" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/maintenances/2"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/maintenances/2';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/maintenances/2'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Maintenance
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/maintenances/2" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/maintenances/2"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/maintenances/2';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/maintenances/2'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Manufacturers
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/manufacturers/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=wsdZCoP7veaDGNxSgmEVyiIXMCynDJaplPtmclKS; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Restore Deleted Manufacturer
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto/restore" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto/restore"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto/restore';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto/restore'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Manufacturers
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/manufacturers?search=Dell&name=Dell&url=http%3A%2F%2Fexample.com&support_url=http%3A%2F%2Fsupport.example.com&warranty_lookup_url=http%3A%2F%2Fwarranty.example.com&support_phone=1-800-555-5555&support_email=support%40example.org&sort=name&order=asc&offset=0&limit=50" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers"
+);
+
+const params = {
+ "search": "Dell",
+ "name": "Dell",
+ "url": "http://example.com",
+ "support_url": "http://support.example.com",
+ "warranty_lookup_url": "http://warranty.example.com",
+ "support_phone": "1-800-555-5555",
+ "support_email": "support@example.org",
+ "sort": "name",
+ "order": "asc",
+ "offset": "0",
+ "limit": "50",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'Dell',
+ 'name' => 'Dell',
+ 'url' => 'http://example.com',
+ 'support_url' => 'http://support.example.com',
+ 'warranty_lookup_url' => 'http://warranty.example.com',
+ 'support_phone' => '1-800-555-5555',
+ 'support_email' => 'support@example.org',
+ 'sort' => 'name',
+ 'order' => 'asc',
+ 'offset' => '0',
+ 'limit' => '50',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers'
+params = {
+ 'search': 'Dell',
+ 'name': 'Dell',
+ 'url': 'http://example.com',
+ 'support_url': 'http://support.example.com',
+ 'warranty_lookup_url': 'http://warranty.example.com',
+ 'support_phone': '1-800-555-5555',
+ 'support_email': 'support@example.org',
+ 'sort': 'name',
+ 'order': 'asc',
+ 'offset': '0',
+ 'limit': '50',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=hLpuGgLKlkZ3lxAdCVVQh6AknrP7V8ucHP12iJyL; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Maintenance
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/manufacturers" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Manufacturer
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=AihyA0pGOpolpeaHgVkhwxZ48ZIGlH5C4cWn2ky1; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Manufacturer
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Manufacturer
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/manufacturers/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/manufacturers/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Misc
+ + + +Version API routes
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/version" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/version"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/version';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/version'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=4opUPyEuZlodDlaWWG7JNFN7lCuHNMim1KxZHPur; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=719999; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Models
+ + + +Selectlist of Models
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/models/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=jwtFIyYGPRatDfntlAj40jo0O4Sj0FCnKi976PR2; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Assets in Model
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/models/assets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models/assets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models/assets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models/assets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=nvMGTR69fETV88dw8dfKSbREZAJ66IYQUUNSpf7Y; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Models
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/models" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=QArLWCify7SZSmEfdwLa8MuiE73ySbcjczNWAP5t; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Model
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/models" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Model
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/models/16" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models/16"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models/16';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models/16'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=Fi7bcrWvfZzmZFbGKAT0DPwaht8G2vkcbjoJPdZ1; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Model
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/models/16" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models/16"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models/16';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models/16'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Model
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/models/16" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/models/16"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/models/16';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/models/16'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Notes
+ + + +Assets
+Store Note
+ ++requires authentication +
+ +Checks authorization for updating assets, validates the presence of the 'note', +attempts to find the asset by ID, and creates a new ActionLog entry if successful. +Returns JSON responses indicating success or failure with appropriate HTTP status codes.
+ + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/notes/1/store" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/notes/1/store"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/notes/1/store';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/notes/1/store'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Notes
+ ++requires authentication +
+ +Checks authorization to view assets, attempts to find the asset by ID, +and fetches related action log entries of type 'note added', including +user information for each note. Returns a JSON response with the notes or errors.
+ + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/notes/1/index" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/notes/1/index"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/notes/1/index';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/notes/1/index'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=0996I9pgG6hTiplyAUfm6hARQqlLp2KcZRKbrsM4; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Predefined Kits
+ + + +List Kits
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/kits" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=BSc46Rjyl24Ed0D3XweTOOmBl4ZRMjvkZT0P0LSQ; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/kits" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/kits/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=0eyOqf0SJ6Slcj3wxf7abcmSncDyqjA8t0LitABZ; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/kits/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/kits/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Licenses in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/kits/1/licenses" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=RDCUVBV4hMi1OpBYln5l3IZ2PNZLexaBBBMcPiY3; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Add License to Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"license\": 1,
+ \"quantity\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "license": 1,
+ "quantity": 1
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'license' => 1,
+ 'quantity' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses'
+payload = {
+ "license": 1,
+ "quantity": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update License in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove License from Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/licenses/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Models in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/kits/1/models" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/models"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/models';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/models'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=BdKhymmjrKjGS7HIhqlvLkChaxUPdHXJf1sntPCm; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Add Model to Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/models" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"model\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/models"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "model": 1
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/models';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'model' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/models'
+payload = {
+ "model": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Accessories in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/kits/1/accessories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=50xoUvlOlSVxg5nWSWhvNx9mDtVXWDyttn6Tdl13; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Add Accessory to Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"accessory\": 1,
+ \"quantity\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "accessory": 1,
+ "quantity": 1
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'accessory' => 1,
+ 'quantity' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories'
+payload = {
+ "accessory": 1,
+ "quantity": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Accessory in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"quantity\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "quantity": 1
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'quantity' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1'
+payload = {
+ "quantity": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove Accessory from Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/accessories/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Consumables in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/kits/1/consumables" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=Q2XcAI2qf8SWjOX7XDlr4BFa9PAeUgRBAaRStarB; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Add Consumable to Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"consumable\": 1,
+ \"quantity\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "consumable": 1,
+ "quantity": 1
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'consumable' => 1,
+ 'quantity' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables'
+payload = {
+ "consumable": 1,
+ "quantity": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Consumable in Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"quantity\": 1
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "quantity": 1
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'quantity' => 1,
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1'
+payload = {
+ "quantity": 1
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove Consumable from Kit
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/kits/1/consumables/1'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Reports
+ + + +Activity Report
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/reports/activity?search=updated&target_type=user&target_id=1&item_type=asset&item_id=1&action_type=create&created_by=1&action_source=web&uploads=1&sort=created_at&order=desc&offset=0&limit=25" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/reports/activity"
+);
+
+const params = {
+ "search": "updated",
+ "target_type": "user",
+ "target_id": "1",
+ "item_type": "asset",
+ "item_id": "1",
+ "action_type": "create",
+ "created_by": "1",
+ "action_source": "web",
+ "uploads": "1",
+ "sort": "created_at",
+ "order": "desc",
+ "offset": "0",
+ "limit": "25",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/reports/activity';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'updated',
+ 'target_type' => 'user',
+ 'target_id' => '1',
+ 'item_type' => 'asset',
+ 'item_id' => '1',
+ 'action_type' => 'create',
+ 'created_by' => '1',
+ 'action_source' => 'web',
+ 'uploads' => '1',
+ 'sort' => 'created_at',
+ 'order' => 'desc',
+ 'offset' => '0',
+ 'limit' => '25',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/reports/activity'
+params = {
+ 'search': 'updated',
+ 'target_type': 'user',
+ 'target_id': '1',
+ 'item_type': 'asset',
+ 'item_id': '1',
+ 'action_type': 'create',
+ 'created_by': '1',
+ 'action_source': 'web',
+ 'uploads': '1',
+ 'sort': 'created_at',
+ 'order': 'desc',
+ 'offset': '0',
+ 'limit': '25',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=Q7c7iu2qi9Mil7UrdGdQhd5UHhMHwIs9J7wKxvhY; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Settings
+ + + +Test LDAP Connection
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/settings/ldaptest" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/ldaptest"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/ldaptest';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/ldaptest'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=sXQmK1seBet712r1kd4fxKvJ8eS1G5JIQGi7Jk76; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Barcode Cache
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/settings/purge_barcodes" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/purge_barcodes"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/purge_barcodes';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/purge_barcodes'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Get a list of login attempts
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/settings/login-attempts" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/login-attempts"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/login-attempts';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/login-attempts'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=3WvRIFmkRUjvmDyyocP7gGkeVA8nsKCstMlpD2ll; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Test LDAP Login
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/settings/ldaptestlogin" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json" \
+ --data "{
+ \"ldaptest_user\": \"architecto\",
+ \"ldaptest_password\": \"architecto\"
+}"
+const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/ldaptestlogin"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+let body = {
+ "ldaptest_user": "architecto",
+ "ldaptest_password": "architecto"
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+ body: JSON.stringify(body),
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/ldaptestlogin';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'json' => [
+ 'ldaptest_user' => 'architecto',
+ 'ldaptest_password' => 'architecto',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/ldaptestlogin'
+payload = {
+ "ldaptest_user": "architecto",
+ "ldaptest_password": "architecto"
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers, json=payload)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Test Email Configuration
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/settings/mailtest" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/mailtest"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/mailtest';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/mailtest'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Lists backup files
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/settings/backups" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/backups"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/backups';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/backups'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=c1LnO2y90g9cXIQdH1B3ALRTwBznlJR0MPn7UYwI; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Determines and downloads the latest backup
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/settings/backups/download/latest" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/backups/download/latest"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/backups/download/latest';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/backups/download/latest'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=h8vmsBd9n2ThBnox919dPAo17WMNdGSmFDgmUWbJ; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Downloads a backup file.
+ ++requires authentication +
+ +We use response()->download() here instead of Storage::download() because Storage::download() +exhausts memory on larger files.
+ + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/settings/backups/download/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/settings/backups/download/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/settings/backups/download/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/settings/backups/download/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=dEPJObU3yZeyRQ0ZNZQmLDg70DDH6mt8OLUoXk7b; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Status Labels
+ + + +Assets
+Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=wkMPeN6kxHTgcy7pBWCmBb2skYp7Ozxo03ll2QRI; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Count for Pie Chart
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels/assets/name" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/assets/name"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/assets/name';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/assets/name'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=BwSbIkmBBnKEl1eHDB5irvFrSmdOermismgPqdVt; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Count for Pie Chart by Meta Status
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels/assets/type" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/assets/type"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/assets/type';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/assets/type'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=qgDpluENzw06DYesVDJ62VPNypFZR7TMXA5YuERD; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Assets with Status Label
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/assetlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/assetlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/assetlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/assetlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=prHwFCnHCRfbaQBGGsb9zl9HAqpNQVahgTzOn5TU; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Check for Deployable Status
+ ++requires authentication +
+ +Returns a boolean response based on whether the status label +is one that is deployable or pending.
+This is used by the hardware create/edit view to determine whether +we should provide a dropdown of users for them to check the asset out to, +and whether we show a warning that the asset will be checked in if it's already +assigned but the status is changed to one that isn't pending or deployable
+ + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/deployable" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/deployable"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/deployable';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto/deployable'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=gGlaRILsVZF4fEWWem29LTEhtwQLJo5jRgFzetFi; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Status Labels
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels?search=Inventory" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels"
+);
+
+const params = {
+ "search": "Inventory",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'Inventory',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels'
+params = {
+ 'search': 'Inventory',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=wZlTwk63tGu1kRBFJuzb8R1UY1k0ZU2YI5NAAZt8; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Store a newly created resource in storage.
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/statuslabels" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Status Labels
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=BoPls7yDoCtaubgDPfK5nEabHin9oYkJpg9vZT3b; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Status Label
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Status Label
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/statuslabels/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/statuslabels/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Suppliers
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/suppliers/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/suppliers/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/suppliers/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/suppliers/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=XCddlMqcqKqWUTBwJenBf996h9VUAuQn9onGzMNw; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Suppliers
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/suppliers?search=Acme&name=Acme+Corp&address=123+Main+St&address2=Suite+100&city=Springfield&state=IL&zip=62701&country=USA&phone=555-1234&fax=555-5678&email=info%40example.org&url=http%3A%2F%2Fexample.com¬es=This+is+a+note.&sort=name&order=asc&offset=0&limit=50" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/suppliers"
+);
+
+const params = {
+ "search": "Acme",
+ "name": "Acme Corp",
+ "address": "123 Main St",
+ "address2": "Suite 100",
+ "city": "Springfield",
+ "state": "IL",
+ "zip": "62701",
+ "country": "USA",
+ "phone": "555-1234",
+ "fax": "555-5678",
+ "email": "info@example.org",
+ "url": "http://example.com",
+ "notes": "This is a note.",
+ "sort": "name",
+ "order": "asc",
+ "offset": "0",
+ "limit": "50",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/suppliers';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'Acme',
+ 'name' => 'Acme Corp',
+ 'address' => '123 Main St',
+ 'address2' => 'Suite 100',
+ 'city' => 'Springfield',
+ 'state' => 'IL',
+ 'zip' => '62701',
+ 'country' => 'USA',
+ 'phone' => '555-1234',
+ 'fax' => '555-5678',
+ 'email' => 'info@example.org',
+ 'url' => 'http://example.com',
+ 'notes' => 'This is a note.',
+ 'sort' => 'name',
+ 'order' => 'asc',
+ 'offset' => '0',
+ 'limit' => '50',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/suppliers'
+params = {
+ 'search': 'Acme',
+ 'name': 'Acme Corp',
+ 'address': '123 Main St',
+ 'address2': 'Suite 100',
+ 'city': 'Springfield',
+ 'state': 'IL',
+ 'zip': '62701',
+ 'country': 'USA',
+ 'phone': '555-1234',
+ 'fax': '555-5678',
+ 'email': 'info@example.org',
+ 'url': 'http://example.com',
+ 'notes': 'This is a note.',
+ 'sort': 'name',
+ 'order': 'asc',
+ 'offset': '0',
+ 'limit': '50',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=R5PUii8mbVR2t8EyWTQHM80dstDyhZxcQR15nKb7; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Supplier
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/suppliers" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/suppliers"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/suppliers';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/suppliers'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Supplier
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/suppliers/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/suppliers/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/suppliers/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/suppliers/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=aqFNCFcjAl7hMG1Q0RCnYmK7HTNWcq0kYhd1R9NN; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Supplier
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/suppliers/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/suppliers/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/suppliers/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/suppliers/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete Supplier
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/suppliers/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/suppliers/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/suppliers/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/suppliers/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ User Groups
+ + + +Display a listing of the resource.
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/groups" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/groups"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/groups';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/groups'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=evRZVbrjaLPlDGuAmSjuQxAfBkaXVVI3h6YJ8xCC; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create Group
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/groups" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/groups"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/groups';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/groups'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show Group
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/groups/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/groups/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/groups/architecto';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/groups/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=lUFcyrjpTiMJiziJCYaZzhxr9o4YDOHuJhtyxe9O; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update Group
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/groups/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/groups/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/groups/architecto';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/groups/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Remove the specified resource from storage.
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/groups/architecto" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/groups/architecto"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/groups/architecto';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/groups/architecto'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Users
+ + + +Selectlist
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/selectlist" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/selectlist"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/selectlist';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/selectlist'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=IZgqgS9tzB7Woi3wtkhrOVoQAjhOfyxkuDcPvkvg; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ LDAP Sync Users
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/users/ldapsync" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/ldapsync"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/ldapsync';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/ldapsync'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Reset Two-factor
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/users/two_factor_reset" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/two_factor_reset"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/two_factor_reset';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/two_factor_reset'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Get Current User Info
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/me" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/me"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/me';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/me'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=DdpSv89XUbxUQrWd91QsKhNPnl22poe1TgDO9OCx; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ User EULAs
+ ++requires authentication +
+ +Gets the lst of accepted EULAs for a user,
+ + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/2/eulas" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2/eulas"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2/eulas';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2/eulas'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=jvqTGWtV1aH3OTBKuSWap25Q3CbiBnuZeONwLBEc; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Assets Assigned to User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/2/assets" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2/assets"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2/assets';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2/assets'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=BTajd65gRG0olNCl96HmZp8natMFNGjMvOZInbII; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Email Asset List to User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/users/2/email" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2/email"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2/email';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2/email'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Accessories Assigned to User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/2/accessories" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2/accessories"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2/accessories';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2/accessories'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=dwRnv0ptfgrlzbYQmswhgKgXRySAxB0gpanmjDq9; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Licenses Assigned to User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/2/licenses" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2/licenses"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2/licenses';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2/licenses'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=1kSYxtla0he5GDr5iKBHwxleDJnZrmZCNsr7DbNL; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Restore User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/users/2/restore" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2/restore"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2/restore';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2/restore'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ List Users
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users?search=John&filter=%7B%22last_name%22%3A%22Doe%22%2C%22first_name%22%3A%22John%22%7D&activated=1&admins=1&superadmins=1&company_id=1&phone=555-1234&mobile=555-5678&location_id=1&created_by=1&email=jdoe%40example.com&username=jdoe&first_name=John&last_name=Doe&display_name=John+Doe&employee_num=12345&state=CA&country=USA&website=https%3A%2F%2Fexample.com&zip=90210&group_id=1&department_id=1&manager_id=1&ldap_import=1&remote=1&vip=1&two_factor_enrolled=1" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users"
+);
+
+const params = {
+ "search": "John",
+ "filter": "{"last_name":"Doe","first_name":"John"}",
+ "activated": "1",
+ "admins": "1",
+ "superadmins": "1",
+ "company_id": "1",
+ "phone": "555-1234",
+ "mobile": "555-5678",
+ "location_id": "1",
+ "created_by": "1",
+ "email": "jdoe@example.com",
+ "username": "jdoe",
+ "first_name": "John",
+ "last_name": "Doe",
+ "display_name": "John Doe",
+ "employee_num": "12345",
+ "state": "CA",
+ "country": "USA",
+ "website": "https://example.com",
+ "zip": "90210",
+ "group_id": "1",
+ "department_id": "1",
+ "manager_id": "1",
+ "ldap_import": "1",
+ "remote": "1",
+ "vip": "1",
+ "two_factor_enrolled": "1",
+};
+Object.keys(params)
+ .forEach(key => url.searchParams.append(key, params[key]));
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ 'query' => [
+ 'search' => 'John',
+ 'filter' => '{"last_name":"Doe","first_name":"John"}',
+ 'activated' => '1',
+ 'admins' => '1',
+ 'superadmins' => '1',
+ 'company_id' => '1',
+ 'phone' => '555-1234',
+ 'mobile' => '555-5678',
+ 'location_id' => '1',
+ 'created_by' => '1',
+ 'email' => 'jdoe@example.com',
+ 'username' => 'jdoe',
+ 'first_name' => 'John',
+ 'last_name' => 'Doe',
+ 'display_name' => 'John Doe',
+ 'employee_num' => '12345',
+ 'state' => 'CA',
+ 'country' => 'USA',
+ 'website' => 'https://example.com',
+ 'zip' => '90210',
+ 'group_id' => '1',
+ 'department_id' => '1',
+ 'manager_id' => '1',
+ 'ldap_import' => '1',
+ 'remote' => '1',
+ 'vip' => '1',
+ 'two_factor_enrolled' => '1',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users'
+params = {
+ 'search': 'John',
+ 'filter': '{"last_name":"Doe","first_name":"John"}',
+ 'activated': '1',
+ 'admins': '1',
+ 'superadmins': '1',
+ 'company_id': '1',
+ 'phone': '555-1234',
+ 'mobile': '555-5678',
+ 'location_id': '1',
+ 'created_by': '1',
+ 'email': 'jdoe@example.com',
+ 'username': 'jdoe',
+ 'first_name': 'John',
+ 'last_name': 'Doe',
+ 'display_name': 'John Doe',
+ 'employee_num': '12345',
+ 'state': 'CA',
+ 'country': 'USA',
+ 'website': 'https://example.com',
+ 'zip': '90210',
+ 'group_id': '1',
+ 'department_id': '1',
+ 'manager_id': '1',
+ 'ldap_import': '1',
+ 'remote': '1',
+ 'vip': '1',
+ 'two_factor_enrolled': '1',
+}
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers, params=params)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=svMpBgCg8Lm5Jzhs2MsnXhIHryI0BbXg3iVzyJkL; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Create User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request POST \
+ "https://snipe-it.test/api/v1/api/v1/users" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "POST",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users';
+$response = $client->post(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('POST', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Show User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request GET \
+ --get "https://snipe-it.test/api/v1/api/v1/users/2" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "GET",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2';
+$response = $client->get(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('GET', url, headers=headers)
+response.json()++Example response (401):
+
+ Show headers +
+cache-control: max-age=0, must-revalidate, no-cache, no-store, private
+content-type: application/json
+vary: Origin
+pragma: no-cache
+expires: Sun, 02 Jan 1990 00:00:00 GMT
+x-content-type-options: nosniff
+feature-policy: accelerometer 'none';autoplay 'none';camera 'none';display-capture 'none';document-domain 'none';encrypted-media 'none';fullscreen 'none';geolocation 'none';sync-xhr 'none';usb 'none';xr-spatial-tracking 'none'
+referrer-policy: same-origin
+content-security-policy: default-src 'self';style-src 'self' 'unsafe-inline';script-src 'self' 'unsafe-inline' 'unsafe-eval';connect-src 'self';object-src 'none';font-src 'self' data:;img-src 'self' data: https://snipe-it.test https://avatars.githubusercontent.com/u/ https://www.google.com/images/branding/googlelogo/2x/ https://snipe-flysystem-public-test.s3-us-west-2.amazonaws.com https://secure.gravatar.com http://gravatar.com maps.google.com maps.gstatic.com *.googleapis.com
+set-cookie: snipe-dev_local=UXj5Ks0zKIILl7fLIxnYGCgcKClmFZ1Nx8GEnqhC; expires=Sat, 18 Oct 2025 20:42:52 GMT; Max-Age=720000; path=/; secure; httponly; samesite=lax
+
+
+{
+ "error": "Unauthorized or unauthenticated."
+}
+
+
+
+ Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Update User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request PUT \
+ "https://snipe-it.test/api/v1/api/v1/users/2" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "PUT",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2';
+$response = $client->put(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('PUT', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+ Delete User
+ ++requires authentication +
+ + + + +Example request:+ + +
curl --request DELETE \
+ "https://snipe-it.test/api/v1/api/v1/users/2" \
+ --header "Authorization: Bearer 6g43cv8PD1aE5beadkZfhV6" \
+ --header "Content-Type: application/json" \
+ --header "Accept: application/json"const url = new URL(
+ "https://snipe-it.test/api/v1/api/v1/users/2"
+);
+
+const headers = {
+ "Authorization": "Bearer 6g43cv8PD1aE5beadkZfhV6",
+ "Content-Type": "application/json",
+ "Accept": "application/json",
+};
+
+fetch(url, {
+ method: "DELETE",
+ headers,
+}).then(response => response.json());$client = new \GuzzleHttp\Client();
+$url = 'https://snipe-it.test/api/v1/api/v1/users/2';
+$response = $client->delete(
+ $url,
+ [
+ 'headers' => [
+ 'Authorization' => 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type' => 'application/json',
+ 'Accept' => 'application/json',
+ ],
+ ]
+);
+$body = $response->getBody();
+print_r(json_decode((string) $body));import requests
+import json
+
+url = 'https://snipe-it.test/api/v1/api/v1/users/2'
+headers = {
+ 'Authorization': 'Bearer 6g43cv8PD1aE5beadkZfhV6',
+ 'Content-Type': 'application/json',
+ 'Accept': 'application/json'
+}
+
+response = requests.request('DELETE', url, headers=headers)
+response.json()Received response: ++
+
+
+ Request failed with error:+
+
+Tip: Check that you're properly connected to the network.
+If you're a maintainer of ths API, verify that your API is running and you've enabled CORS.
+You can check the Dev Tools console for debugging information.
+
+
+
+
+
+
+
+
+