---
title: "Update a fly"
method: PUT
path: "/api/v1/flies/{id}"
tags: ["Flies"]
---

# Update a fly

`PUT /api/v1/flies/{id}`

Update a fly.

## Path parameters

- `id` integer, required

## Request body

- UpdateFly
  - `token` string, required
  - `item` object
    - `name` string — The name of the fly
    - `owner_id` integer — id of the owner - by default it's your member id
    - `source` string — Origin of the fly.
    - `genotype` string — Genetic makeup.
    - `phenotype` string — Observable characteristics.
    - `breakpoints_insertions` string — Genetic insertion points.
    - `ch_number` string — Chromosome number.
    - `ch_te` string — Transposable element in chromosome.
    - `description` string — Description of the fly

## Response `200`

OK

## Other responses

- `401` — Error: Unauthorized
- `422` — invalid request

---

[API](https://skmtc.net/labguru/apis/labguru-api.md) · [All operations](https://skmtc.net/labguru/apis/labguru-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/labguru/labguru-api/revisions/0534e4d70b77/schema)
