# Change, pause or resume the repeating search

Changes how often the workspace's repeating search runs, whether it emails new jobs, or pauses and resumes it. A paused search does not run until resumed; resuming keeps its time of day. Requires authentication.

```http
PATCH https://hiresweep.com/api/openapi/discovery/schedule
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "frequency": {
      "enum": [
        "daily",
        "weekly"
      ],
      "type": "string",
      "description": "How often to search: daily or weekly."
    },
    "emailDigest": {
      "type": "boolean",
      "description": "Whether a run that finds new jobs emails you a digest."
    },
    "paused": {
      "type": "boolean",
      "description": "True to pause the repeating search, false to resume it."
    },
    "clientId": {
      "anyOf": [
        {
          "type": "string",
          "minLength": 1
        },
        {
          "type": "null"
        }
      ],
      "description": "The client whose data this is, for an operator applying on behalf of clients. Omit for your own."
    }
  }
}
```

## Responses

- `200`: The repeating search, as changed.
