# us.off-the-clock.setCalendarFeed

> Rotates, disables or enables one of the viewer's calendar feeds in a space they read. Rotating gives the feed a new URL and the old one stops answering.

- Kind: procedure
- Authority: off-the-clock.us
- Lexicon: 1
- Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.setCalendarFeed)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.setCalendarFeed/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.setCalendarFeed/analytics)

## Procedure (`us.off-the-clock.setCalendarFeed`)

Type: procedure · POST

### Input (application/json)

- `action` (string, required)
  - Constraints: knownValues: rotate | disable | enable
- `space` (string, required): A pair's TID.
- `variant` (string, required)
  - Constraints: knownValues: all | mine

### Output (application/json)

- `schema` (ref)
  - Reference: `us.off-the-clock.listCalendarFeeds#calendarFeed`

### Errors

- `InvalidRequest`: No description in schema.
- `NotSpaceMember`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Rotates, disables or enables one of the viewer's calendar feeds in a space they read. Rotating gives the feed a new URL and the old one stops answering.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "action": {
              "knownValues": [
                "rotate",
                "disable",
                "enable"
              ],
              "type": "string"
            },
            "space": {
              "description": "A pair's TID.",
              "type": "string"
            },
            "variant": {
              "knownValues": [
                "all",
                "mine"
              ],
              "type": "string"
            }
          },
          "required": [
            "space",
            "variant",
            "action"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "us.off-the-clock.listCalendarFeeds#calendarFeed",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.setCalendarFeed",
  "lexicon": 1
}
```
