---
title: "Update Agent Traits"
method: PUT
path: "/api/v1/agents/{agent_id_or_identifier}/traits"
tags: ["agents"]
---

# Update Agent Traits

`PUT /api/v1/agents/{agent_id_or_identifier}/traits`

## Request

- Base URL: `https://api.gnosari.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.gnosari.com/api/v1/agents/{agent_id_or_identifier}/traits`
- Auth: one of:
  - HTTP bearer
  - API key in header `X-AUTH-TOKEN`

Update agent traits specifically.
Supports both numeric IDs and string identifiers for the agent.

Request body:
    {"trait_ids": [1, 2, 3]}

## Path parameters

- `agent_id_or_identifier` string, required

## Request body

- BodyUpdateAgentTraitsApiV1AgentsAgentIdOrIdentifierTraitsPut
  - `trait_ids` integer[], required

## Response `200`

Successful Response

- Agent

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/gnosari/apis/gnosari-api.md) · [All operations](https://skmtc.dev/gnosari/apis/gnosari-api/llms.txt) · [OpenAPI document](https://skmtc.dev/gnosari/apis/gnosari-api/revisions/f299cf53ae5f?raw)
