Skip to main content
Agents

Stop a session

POST
/agents/{agent_name}/endpoint/sessions/{session_id}:stop

Terminates the specified hosted agent session and returns 204 No Content when the request succeeds.

Path Parameters
agent_namestringrequired
The name of the agent.
session_idstringrequired
The session identifier.
Query Parameters
api-versionstringrequired
The API version to use for this operation.
Header Parameters
Foundry-Featuresstringoptional
A feature flag opt-in required when using preview operations or modifying persisted preview resources.
AgentEndpoints=V1Preview
Responses
No response body schema