<!-- נוצר אוטומטית ממקור התיעוד הקנוני של Teloring. אין לערוך קובץ זה. -->

עמוד קנוני: https://docs.teloring.com/he/api/update-agent
עודכן לאחרונה: 2026-08-20T20:52:05.000Z

# Update an agent

import MethodEndpoint from "@theme/ApiExplorer/MethodEndpoint";
import ParamsDetails from "@theme/ParamsDetails";
import RequestSchema from "@theme/RequestSchema";
import StatusCodes from "@theme/StatusCodes";
import OperationTabs from "@theme/OperationTabs";
import TabItem from "@theme/TabItem";
import Heading from "@theme/Heading";
import Translate from "@docusaurus/Translate";

<Heading
  as={"h1"}
  className={"openapi__heading"}
  children={"Update an agent"}
>
</Heading>

<MethodEndpoint
  method={"patch"}
  path={"/agents/{agent_id}"}
  context={"endpoint"}
>
  
</MethodEndpoint>



Update an agent's profile, role or activation state.

**Email and password cannot be changed here** — both answer `400` with
`code: field_not_editable`. They are identity rather than profile: an email
change re-keys the global login index and must be confirmed from the address
itself, and a password can only be set by the person who owns it.

The account's last Owner cannot be moved off Owner or deactivated. That answers
`400` with `code: last_owner` — an account must never be able to lock itself out
of its own product.

<Heading
  id={"request"}
  as={"h2"}
  className={"openapi-tabs__heading"}
>
  <Translate id="theme.openapi.request.title">Request</Translate>
</Heading>

<ParamsDetails
  {...require("./update-agent.ParamsDetails.json")}
>
  
</ParamsDetails>

<RequestSchema
  {...require("./update-agent.RequestSchema.json")}
>
  
</RequestSchema>

<StatusCodes
  {...require("./update-agent.StatusCodes.json")}
>
  
</StatusCodes>
