---
title: "Update an agent in a FlowAI project"
method: PATCH
path: "/agent-project-service/agents/{agentId}"
tags: ["Agent Project Service"]
---

# Update an agent in a FlowAI project

`PATCH /agent-project-service/agents/{agentId}`

## Request

- Base URL: `https://example.itential.io`
- URL: `https://example.itential.io/agent-project-service/agents/{agentId}`
- Auth: none declared

Updates an Agent Definition within a FlowAI Project. Requires editor or owner GBAC role; updating operators requires owner GBAC role.

## Path parameters

- `agentId` string, uuid, required

## Request body

- object
  - `name` string
  - `description` string
  - `prompt` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaPrompt
    - `instructions` string, required
    - `inputSchema` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaPromptInputSchema, required
      - `type` unknown, required
      - `additionalProperties` unknown, required
      - `required` string[], required
      - `properties` object, required
  - `provider` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaProvider
    - `profile` string, uuid, required
    - `model` string, uuid, required
  - `addTools` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaAddToolsItems[]
    - `referenceId` string, required
    - `decoratorId` string
  - `decorateTools` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaDecorateToolsItems[]
    - `referenceId` string, required
    - `decoratorId` string, nullable, required
  - `authorizeTools` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaAuthorizeToolsItems[]
    - `referenceId` string, required
  - `removeTools` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaRemoveToolsItems[]
    - `referenceId` string, required
  - `operators` string[]
  - `addSkills` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaAddSkillsItems[]
    - `skillId` string, required
    - `version` integer, required
    - `latest` boolean
  - `removeSkills` AgentProjectServiceAgentsAgentIdPatchRequestBodyContentApplicationJsonSchemaRemoveSkillsItems[]
    - `skillId` string, required

## Response `200`

The updated Agent Definition

- AgentProjectServiceUpdateAgentResponse200
  - `message` string, required
  - `data` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaData, required
    - `_id` string, uuid, required
    - `name` string, required
    - `description` string, required
    - `instructions` string, required
    - `inputSchema` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataInputSchema, required
    - `created` string, date-time, required
    - `createdBy` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataCreatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `lastUpdated` string, date-time, required
    - `lastUpdatedBy` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataLastUpdatedBy, required
      - `_id` string, required
      - `username` string, required
      - `provenance` string, required
    - `operators` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataOperatorsItems[], required
      - `_id` string, required
      - `name` string, required
      - `provenance` string, required
    - `namespace` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataNamespace, required
      - `type` 'flowai_project', required
      - `_id` string, uuid, required
      - `name` string, required
    - `authorized` boolean, required
    - `provider` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataProvider
      - `profile` string, uuid, required
      - `model` string, uuid, required
      - `lastKnownProfileName` string, required
      - `lastKnownModelName` string, required
    - `tools` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataToolsItems[], required
      - union
        - AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataToolsItems0
          - `referenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
        - AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataToolsItems1
          - `unauthorizedReferenceId` string, required
          - `lastKnownName` string, required
          - `decoratorId` string
    - `skills` AgentProjectServiceAgentsAgentIdPatchResponsesContentApplicationJsonSchemaDataSkillsItems[], required
      - `skillId` string, required
      - `version` integer, required
      - `latest` boolean, required
      - `lastKnownName` string, required

## Other responses

- `500`: Error response from API

## Changes

- **2026-10-31** `2095cc90e583`: 2 info
  - api tag `Agent Project Service` added
  - api tag `agentProjectService` removed

[Operation history](https://skmtc.dev/itential/apis/itential-2/changes/agent-project-service/agents/:agentId/patch.md)

---

[API](https://skmtc.dev/itential/apis/itential-2.md) - [All operations](https://skmtc.dev/itential/apis/itential-2/llms.txt) - [OpenAPI document](https://skmtc.dev/itential/apis/itential-2/revisions/2095cc90e583?raw)
