Skip to main content
POST
https://api-dev.weir.ai/
/
pax
/
stop
/
pod
/
:podId
curl -X POST 'https://api.weir.ai/pax/stop/pod/pod_123456789' \
  -H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
  "data": {
    "podId": "pod_123456789",
    "status": "stopped",
    "stoppedAt": "2024-01-22T15:30:00Z"
  },
  "message": "Pod stopped successfully",
  "status": "success"
}

Stop Pod

Stop a pod completely and terminate all operations.
curl -X POST 'https://api.weir.ai/pax/stop/pod/pod_123456789' \
  -H 'Authorization: Bearer YOUR_ADMIN_ACCESS_TOKEN'
{
  "data": {
    "podId": "pod_123456789",
    "status": "stopped",
    "stoppedAt": "2024-01-22T15:30:00Z"
  },
  "message": "Pod stopped successfully",
  "status": "success"
}

Path Parameters

podId
string
required
Unique pod identifier.

Usage Examples

const stopPod = async (podId, accessToken) => {
  const response = await fetch(`https://api.weir.ai/pax/stop/pod/${podId}`, {
    method: 'POST',
    headers: { 'Authorization': `Bearer ${accessToken}` }
  });
  if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`);
  return await response.json();
};