curl --request POST \
--url http://localhost:3000/api/agents/{agentId}/worlds \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"sourceType": "<string>",
"sourceId": "<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": {}
}
}
}
Create a new world for a specific agent
curl --request POST \
--url http://localhost:3000/api/agents/{agentId}/worlds \
--header 'Content-Type: application/json' \
--data '{
"name": "<string>",
"sourceType": "<string>",
"sourceId": "<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": {}
}
}
}
ID of the agent
World created successfully
The response is of type object
.
Was this page helpful?