POST
/
{resourceSlug}
/
forms
/
agent
/
{agentId}
/
edit
curl --request POST \
  --url https://app.agentcloud.dev/{resourceSlug}/forms/agent/{agentId}/edit \
  --header 'Content-Type: agent.json' \
  --data '{
  "_id": "<string>",
  "orgId": "<string>",
  "teamId": "<string>",
  "name": "<string>",
  "role": "<string>",
  "goal": "<string>",
  "backstory": "<string>",
  "modelId": "<string>",
  "functionModelId": "<string>",
  "verbose": true,
  "allowDelegation": true,
  "toolIds": [
    "<string>"
  ],
  "icon": {}
}'
{
  "_id": "<string>",
  "redirect": "<string>"
}

Path Parameters

resourceSlug
string
required

The resourceSlug is a url parameter of the teamId associated with the user

agentId
object
required

the agentId of the agent that will be edited

Body

agent.json

JSON body containing the edited agent, all edited fields contain their new value and any unedited fields must still be included but with their original value.

An agent object used for tasks or apps

Response

302
dynamicResponse

Successful operation, redirect to '/{resourceSlug}/agents'.

Server response after successsfully adding a new object