MCPcopy Create free account
hub / github.com/AgentOps-AI/agentops / post

Method post

agentops/client/api/base.py:108–120  ·  view source on GitHub ↗

Make async POST request Args: path: API endpoint path data: Request payload headers: Request headers Returns: JSON response as dictionary, or None if request failed

(self, path: str, data: Dict[str, Any], headers: Dict[str, str])

Source from the content-addressed store, hash-verified

106 raise Exception(f"{method.upper()} request failed: {str(e)}") from e
107
108 async def post(self, path: str, data: Dict[str, Any], headers: Dict[str, str]) -> Optional[Dict[str, Any]]:
109 """
110 Make async POST request
111
112 Args:
113 path: API endpoint path
114 data: Request payload
115 headers: Request headers
116
117 Returns:
118 JSON response as dictionary, or None if request failed
119 """
120 return await self.async_request("post", path, data=data, headers=headers)
121
122 async def get(self, path: str, headers: Dict[str, str]) -> Optional[Dict[str, Any]]:
123 """

Calls 1

async_requestMethod · 0.95