---
title: "Find the attached User"
method: GET
path: "/pets/{id}/owner"
tags: ["Pet"]
---

# Find the attached User

`GET /pets/{id}/owner`

Find the attached User of the Pet with the given ID

## Path parameters

- `id` integer, required

## Response `200`

User attached to Pet with requested ID was found

- User
  - `id` integer, required
  - `name` string, required
  - `age` integer, required
  - `pets` Pet[]
    - `id` integer, required
    - `name` string, required
    - `nicknames` string[]
    - `age` integer
    - `categories` Category[]
      - `id` integer, required
      - `name` string, required
      - `readonly` string, required
      - `pets` Pet[]
    - `owner` User — recursive
    - `friends` Pet[]

## Other responses

- `400` — invalid input, data invalid
- `404` — resource not found
- `409` — conflicting resources
- `500` — unexpected error

## Changes

- **2022-01-03** `d1d141e66c09` — 3 breaking, 7 info
  - the `code` response's property format changed from `int32` to no format for status `400`
  - the `code` response's property format changed from `int32` to no format for status `404`
  - the `code` response's property format changed from `int32` to no format for status `500`
  - added the non-success response with the status `409`
  - …6 more
- **2021-12-21** `41f59b033280` — 2 breaking, 1 info
  - the `age` response's property format changed from `int32` to no format for status `200`
  - the `id` response's property format changed from `int32` to no format for status `200`
  - for the `path` request parameter `id`, the format was generalized from `int32` to no format
- **2021-12-20** `a1886e0a17c1` — 3 breaking
  - the `errors` response's property type changed from `object` to no type for status `400`
  - the `errors` response's property type changed from `object` to no type for status `404`
  - the `errors` response's property type changed from `object` to no type for status `500`
- **2021-11-15** `a24bf6c9a92c` — 10 breaking, 1 info
  - for the `path` request parameter `id`, the format changed from no format to `int32`
  - the response property `code` became optional for the status `400`
  - the response property `code` became optional for the status `404`
  - the response property `code` became optional for the status `500`
  - …7 more

[Change history](https://skmtc.dev/ent/apis/my-simple-api/changes/pets/:id/owner/get.md)

---

[API](https://skmtc.dev/ent/apis/my-simple-api.md) · [All operations](https://skmtc.dev/ent/apis/my-simple-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/ent/my-simple-api/revisions/f1e79a433c8f/schema)
