# us.off-the-clock.setCalendarFeed

> Published by [off-the-clock.us](https://lexicon.garden/identity/did:plc:tevv7zpavtjtsvqrrwwipobt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.setCalendarFeed)
- [Documentation](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.setCalendarFeed/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.setCalendarFeed/examples)

## Definitions

### `us.off-the-clock.setCalendarFeed`

**Type**: `procedure`

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.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `action` | `string` | Yes |  |
| `space` | `string` | Yes | A pair's TID. |
| `variant` | `string` | Yes |  |

#### Output

**Encoding**: `application/json`

#### Errors

- **InvalidRequest**
- **NotSpaceMember**

## Raw 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
}
```
