Locations
Replace the overrides of a location
PUT
/
v1
/
locations
/
{location_external_id}
/
overrides
Replace the overrides of a location
curl --request PUT \
--url https://api.technicallyfit.com/v1/locations/{location_external_id}/overrides \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"overrides": [
{
"token": "<string>",
"attributes": {},
"back_in_service_on": "<string>",
"count": 50000,
"note": "<string>"
}
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
overrides: [
{
token: '<string>',
attributes: {},
back_in_service_on: '<string>',
count: 50000,
note: '<string>'
}
]
})
};
fetch('https://api.technicallyfit.com/v1/locations/{location_external_id}/overrides', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/locations/{location_external_id}/overrides"
payload = { "overrides": [
{
"token": "<string>",
"attributes": {},
"back_in_service_on": "<string>",
"count": 50000,
"note": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"inventory_revision": 123,
"location": "<string>",
"overrides": [
{
"attributes": {},
"back_in_service_on": "<string>",
"count": 123,
"kind": "added",
"name": "<string>",
"note": "<string>",
"token": "<string>"
}
]
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}Path Parameters
Body
application/json
⌘I
Replace the overrides of a location
curl --request PUT \
--url https://api.technicallyfit.com/v1/locations/{location_external_id}/overrides \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"overrides": [
{
"token": "<string>",
"attributes": {},
"back_in_service_on": "<string>",
"count": 50000,
"note": "<string>"
}
]
}
'const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
overrides: [
{
token: '<string>',
attributes: {},
back_in_service_on: '<string>',
count: 50000,
note: '<string>'
}
]
})
};
fetch('https://api.technicallyfit.com/v1/locations/{location_external_id}/overrides', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.technicallyfit.com/v1/locations/{location_external_id}/overrides"
payload = { "overrides": [
{
"token": "<string>",
"attributes": {},
"back_in_service_on": "<string>",
"count": 50000,
"note": "<string>"
}
] }
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text){
"inventory_revision": 123,
"location": "<string>",
"overrides": [
{
"attributes": {},
"back_in_service_on": "<string>",
"count": 123,
"kind": "added",
"name": "<string>",
"note": "<string>",
"token": "<string>"
}
]
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": {},
"message": "<string>",
"request_id": "<string>"
}
}