# us.off-the-clock.push.unregisterPushSubscription

> Removes one of the viewer's subscriptions, named by its endpoint or by the id getPushSettings gave it. Anyone else's is left alone.

- Kind: procedure
- Authority: push.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.push.unregisterPushSubscription)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.unregisterPushSubscription/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:tevv7zpavtjtsvqrrwwipobt/us.off-the-clock.push.unregisterPushSubscription/analytics)

## Procedure (`us.off-the-clock.push.unregisterPushSubscription`)

Type: procedure · POST

### Input (application/json)

- `endpoint` (string · uri)
  - Constraints: maxLength: 1024
- `id` (string)

### Output (application/json)


### Errors

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

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Removes one of the viewer's subscriptions, named by its endpoint or by the id getPushSettings gave it. Anyone else's is left alone.",
      "errors": [
        {
          "name": "InvalidRequest"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "endpoint": {
              "format": "uri",
              "maxLength": 1024,
              "type": "string"
            },
            "id": {
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {},
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "us.off-the-clock.push.unregisterPushSubscription",
  "lexicon": 1
}
```
