---
title: "Update Chute Session"
method: PUT
path: "/v1/farm/{farm_id}/chute-sessions/{session_id}"
tags: ["chute-sessions"]
---

# Update Chute Session

`PUT /v1/farm/{farm_id}/chute-sessions/{session_id}`

## Request

- Base URL: `https://api.ranch.bot`
- URL: `https://api.ranch.bot/v1/farm/{farm_id}/chute-sessions/{session_id}`
- Auth: HTTP bearer

Current chute sessions HTTP operation. External credential scopes: write:records. Minimum farm role: EDITOR. Direct requests execute without an app confirmation screen. Production rate limit: 100 requests per 15-minute window per device account, 1000 per browser session, otherwise per client IP. RateLimit headers report the current window; respect Retry-After on 429. Only PROPOSED sessions can be changed or deactivated; started sessions reject this operation with 400.

## Path parameters

- `farm_id` string, uuid, required
- `session_id` string, uuid, required

## Request body

- object
  - `name` string
  - `config` object
    - `widgets` object[], required
      - `id` string, required
      - `type` 'boolean' | 'number' | 'photo' | 'score' | 'select' | 'text' | 'treatment' | 'weight', required
      - `label` string, required
      - `size` 'full' | 'half'
      - `options` object
    - `new_animal_fields` string[]
    - `record_type` 'FEED' | 'GENETIC' | 'HEALTH' | 'MOVEMENT' | 'OTHER'
  - `group_id` string, uuid, nullable

## Response `200`

Success

- object
  - `status` 'ACTIVE' | 'COMPLETED' | 'PROPOSED', required
  - `id` string, required
  - `created_at` string, date-time, required
  - `updated_at` string, date-time, required
  - `name` string, required
  - `is_active` boolean, required
  - `farm_id` string, required
  - `group_id` string, nullable, required
  - `completed_at` string, date-time, nullable, required
  - `config` unknown, required
  - `started_at` string, date-time, required

## Other responses

- `400`: Request validation failed.
- `401`: Missing/invalid authentication or insufficient farm role.
- `403`: Missing required scope or credential type is disallowed.
- `404`: Resource or active farm membership not found.
- `429`: Rate limit exceeded. Retry after the indicated delay.
- `500`: Unexpected server failure.

---

[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)
