---
raw: true
search:
  tags:
    - Spaces
    - POST
seo:
  description: >-
    Parks every rule at the edge and keeps the space paused, so a rule it…
    Reference for the POST /v1/spaces/{spaceId}/rules/pause endpoint in the
    Spacefast API.
sidebar:
  label: Pause a space's traffic rules
  badge: POST
title: Pause a space's traffic rules
type: openapi-operation
---
Parks every rule at the edge and keeps the space paused, so a rule it declares later is parked as it arrives. The space serves as if it declared none. The rules are kept, so resume puts them back without the author writing them again.

`POST /v1/spaces/{spaceId}/rules/pause`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "rules": [
      {
        "id": "string",
        "name": "string",
        "handle": "string",
        "kind": "firewall",
        "origin": "file",
        "sourceRef": "string",
        "placement": "edge",
        "placementReason": "string",
        "desiredState": "enabled",
        "edgeState": "pending",
        "definition": {
          "name": "string",
          "description": "string",
          "action": "block",
          "status": 400,
          "match": {
            "path": "string",
            "host": "string",
            "method": "string",
            "ip": "string",
            "country": "string",
            "asn": "string",
            "userAgent": "string",
            "referer": "string",
            "header": {
              "property1": "string",
              "property2": "string"
            },
            "cookie": {
              "property1": "string",
              "property2": "string"
            },
            "query": {
              "property1": "string",
              "property2": "string"
            },
            "extension": "string",
            "ja3": "string",
            "ja4": "string"
          },
          "any": true
        },
        "lastError": {
          "code": "string",
          "message": "string"
        }
      }
    ],
    "quota": {
      "used": -9007199254740991,
      "limit": -9007199254740991,
      "stale": true
    },
    "paused": true,
    "hostnames": [
      "string"
    ],
    "collapsed": [
      {
        "ruleName": "string",
        "origin": "file",
        "reason": "fingerprint"
      }
    ]
  }
}
```
