# party.whey.writeproxy.listDelegationWrites

> Metadata-only audit of writes the proxy performed for one delegation. No record values, blobs, tokens, or DPoP keys. Requires service auth as the delegation's repo owner.

- Kind: query
- Authority: writeproxy.whey.party
- Lexicon: 1
- Published by [whey.party](https://lexicon.garden/identity/did:plc:mn45tewwnse5btfftvd3powc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.listDelegationWrites)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.listDelegationWrites/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mn45tewwnse5btfftvd3powc/party.whey.writeproxy.listDelegationWrites/analytics)

## Query (`party.whey.writeproxy.listDelegationWrites`)

Type: query · GET

### Parameters (query string)

- `action` (string)
  - Constraints: enum: create | update | delete
- `caller` (string · did)
- `collection` (string · nsid)
- `cursor` (string)
- `delegation` (string, required)
  - Constraints: maxLength: 128
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `since` (string · datetime)
- `until` (string · datetime)

### Output (application/json)

- `cursor` (string)
- `writes` (array, required)
  - `items` (ref)
    - Reference: `party.whey.writeproxy.defs#writeAudit`

### Errors

- `DelegationNotFound`: No description in schema.
- `NotAuthorized`: No description in schema.
- `InvalidCursor`: No description in schema.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "errors": [
        {
          "name": "DelegationNotFound"
        },
        {
          "name": "NotAuthorized"
        },
        {
          "name": "InvalidCursor"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "writes": {
              "items": {
                "ref": "party.whey.writeproxy.defs#writeAudit",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "writes"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "action": {
            "enum": [
              "create",
              "update",
              "delete"
            ],
            "type": "string"
          },
          "caller": {
            "format": "did",
            "type": "string"
          },
          "collection": {
            "format": "nsid",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "delegation": {
            "maxLength": 128,
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "since": {
            "format": "datetime",
            "type": "string"
          },
          "until": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "delegation"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Metadata-only audit of writes the proxy performed for one delegation. No record values, blobs, tokens, or DPoP keys. Requires service auth as the delegation's repo owner.",
  "id": "party.whey.writeproxy.listDelegationWrites",
  "lexicon": 1
}
```
