# pet.trezy.setFeatureConsent

> Published by [trezy.pet](https://lexicon.garden/identity/did:plc:ollch4g7tes2reb5eceiwuol)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.setFeatureConsent)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.setFeatureConsent/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ollch4g7tes2reb5eceiwuol/pet.trezy.setFeatureConsent/examples)

## Definitions

### `pet.trezy.setFeatureConsent`

**Type**: `procedure`

Say yes or no to the caller's pets being Pet of the Week. Yes writes pet.trezy.featureConsent/self into the caller's repo; no deletes it. Idempotent both ways.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `consenting` | `boolean` | Yes |  |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `consenting` | `boolean` | No | The answer now on record. Present only on success. |
| `error` | `string` | No |  |
| `message` | `string` | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Say yes or no to the caller's pets being Pet of the Week. Yes writes pet.trezy.featureConsent/self into the caller's repo; no deletes it. Idempotent both ways.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "consenting": {
              "type": "boolean"
            }
          },
          "required": [
            "consenting"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "consenting": {
              "description": "The answer now on record. Present only on success.",
              "type": "boolean"
            },
            "error": {
              "knownValues": [
                "not-authenticated",
                "invalid-input",
                "save-failed"
              ],
              "type": "string"
            },
            "message": {
              "type": "string"
            }
          },
          "required": [],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "pet.trezy.setFeatureConsent",
  "lexicon": 1
}
```
