---
title: "Set Home Premises"
method: PUT
path: "/v1/farm/{farm_id}/locations/home"
tags: ["locations"]
---

# Set Home Premises

`PUT /v1/farm/{farm_id}/locations/home`

## Request

- Base URL: `https://api.ranch.bot`
- URL: `https://api.ranch.bot/v1/farm/{farm_id}/locations/home`
- Auth: HTTP bearer

Set the explicitly selected default home premises. This is never assumed as an event origin. Directory scopes use read:farms/write:farms; minimum farm role READER for reads and EDITOR for writes.

## Path parameters

- `farm_id` string, uuid, required

## Request body

- object
  - `location_id` string, uuid, required

## Response `200`

Success

- object
  - `home_location_id` string, required

## Other responses

- `400`: Request validation failed.
- `401`: Missing/invalid authentication or insufficient farm role.
- `403`: Missing required external credential scope.
- `404`: Location not found.

---

[API](https://skmtc.dev/ranch/apis/ranch-bot-http-api.md) · [All operations](https://skmtc.dev/ranch/apis/ranch-bot-http-api/llms.txt) · [OpenAPI document](https://skmtc.dev/ranch/apis/ranch-bot-http-api/revisions/24109d33fa02?raw)
