PATCH
/
api
/
agents
/
{agentId}
/
worlds
/
{worldId}
Update a world
curl --request PATCH \
  --url http://localhost:3000/api/agents/{agentId}/worlds/{worldId} \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "<string>",
  "metadata": {}
}'
{
  "success": true,
  "data": {
    "world": {
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "name": "<string>",
      "agentId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "sourceType": "<string>",
      "sourceId": "<string>",
      "metadata": {}
    }
  }
}

Path Parameters

agentId
string
required

ID of the agent

worldId
string
required

ID of the world to update

Body

application/json

Response

200
application/json

World updated successfully

The response is of type object.