跳至主要內容

Pause a Stream – Streams REST API

更新於
2026年7月20日

概覽

Temporarily pauses an active stream to stop data ingestion while preserving your stream configuration. Use this endpoint when you need to temporarily halt data delivery without deleting the stream.

Key behaviors:

  • Data delivery stops immediately
  • Stream configuration is preserved
  • Can be resumed later using the Activate Stream endpoint
  • Stream status changes from activepaused

Endpoint

Send a POST request to pause an active stream.

POST https://api.quicknode.com/streams/rest/v1/streams/{id}/pause

路徑參數

參數類型Required說明
id字串是的The unique identifier (UUID) of the stream to pause

Example Request

curl -X POST "https://api.quicknode.com/streams/rest/v1/streams/f6ad6459-b5ad-4183-b370-1c1388e47e83/pause" \
-H "accept: application/json" \
-H "x-api-key: YOUR_API_KEY"

回應

On success, the API returns a confirmation message.

{
"code": 200,
"msg": "Stream paused successfully",
"data": null
}

Response Fields

領域類型說明
程式碼數字HTTP status code (200 for success)
msg字串Confirmation message
資料nullNo additional data returned