---
title: "Upsert Model Location"
method: PUT
path: "/api/v2/models/versions/{version_id}/locations/{key}"
tags: ["sensors_other"]
---

# Upsert Model Location

`PUT /api/v2/models/versions/{version_id}/locations/{key}`

## Request body

- string

## Response `200`

Successful response

- object
  - `location` string, required
  - `available` boolean

## Other responses

- `404` — The specified resource was not found.
- `503` — The service is undergoing maintenance and is temporarily unavailable.

---

[API](https://skmtc.dev/hiddenlayerai/apis/hiddenlayer-audit-api.md) · [All operations](https://skmtc.dev/hiddenlayerai/apis/hiddenlayer-audit-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hiddenlayerai/hiddenlayer-audit-api/revisions/d8c55b669109/schema)
