# tools.ozone.verification.revokeVerifications

> Published by [ozone-lexicons.bsky.social](https://lexicon.garden/identity/did:plc:33dt5kftu3jq2h5h4jjlqezt)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.verification.revokeVerifications)
- [Documentation](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.verification.revokeVerifications/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:33dt5kftu3jq2h5h4jjlqezt/tools.ozone.verification.revokeVerifications/examples)

## Definitions

### `tools.ozone.verification.revokeVerifications`

**Type**: `procedure`

Revoke previously granted verifications in batches of up to 100.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uris` | `array` | Yes | Array of verification record uris to revoke |
| `revokeReason` | `string` | No | Reason for revoking the verification. This is optional and can be omitted if not needed. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `failedRevocations` | `array` | Yes | List of verification uris that couldn't be revoked, including failure reasons |
| `revokedVerifications` | `array` | Yes | List of verification uris successfully revoked |

### `tools.ozone.verification.revokeVerifications#revokeError`

**Type**: `object`

Error object for failed revocations

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes | The AT-URI of the verification record that failed to revoke. |
| `error` | `string` | Yes | Description of the error that occurred during revocation. |

## Raw Schema

```json
{
  "id": "tools.ozone.verification.revokeVerifications",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "uris"
          ],
          "properties": {
            "uris": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri",
                "description": "The AT-URI of the verification record to revoke."
              },
              "maxLength": 100,
              "description": "Array of verification record uris to revoke"
            },
            "revokeReason": {
              "type": "string",
              "maxLength": 1000,
              "description": "Reason for revoking the verification. This is optional and can be omitted if not needed."
            }
          }
        },
        "encoding": "application/json"
      },
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "revokedVerifications",
            "failedRevocations"
          ],
          "properties": {
            "failedRevocations": {
              "type": "array",
              "items": {
                "ref": "#revokeError",
                "type": "ref"
              },
              "description": "List of verification uris that couldn't be revoked, including failure reasons"
            },
            "revokedVerifications": {
              "type": "array",
              "items": {
                "type": "string",
                "format": "at-uri"
              },
              "description": "List of verification uris successfully revoked"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Revoke previously granted verifications in batches of up to 100."
    },
    "revokeError": {
      "type": "object",
      "required": [
        "uri",
        "error"
      ],
      "properties": {
        "uri": {
          "type": "string",
          "format": "at-uri",
          "description": "The AT-URI of the verification record that failed to revoke."
        },
        "error": {
          "type": "string",
          "description": "Description of the error that occurred during revocation."
        }
      },
      "description": "Error object for failed revocations"
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
