# town.muni.arbiter.updateDidDoc

> Published by [zicklag.dev](https://lexicon.garden/identity/did:plc:ulg2bzgrgs7ddjjlmhtegk3v)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:ulg2bzgrgs7ddjjlmhtegk3v/town.muni.arbiter.updateDidDoc)
- [Documentation](https://lexicon.garden/lexicon/did:plc:ulg2bzgrgs7ddjjlmhtegk3v/town.muni.arbiter.updateDidDoc/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:ulg2bzgrgs7ddjjlmhtegk3v/town.muni.arbiter.updateDidDoc/examples)

## Definitions

### `town.muni.arbiter.updateDidDoc`

**Type**: `procedure`

Update the DID doc for a DID that is hosted by this service.

#### Input

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | The DID to update the document for. |
| `config` | `ref` → `town.muni.arbiter.defs#didDocConfig` | Yes | Updated DID document configuration. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes |  |

#### Errors

- **ErrDidNotManaged**: The specified DID is not managed by this service.
- **ErrPermissionDenied**: The requesting user is not allowed to make the request.

## Raw Schema

```json
{
  "id": "town.muni.arbiter.updateDidDoc",
  "defs": {
    "main": {
      "type": "procedure",
      "input": {
        "schema": {
          "type": "object",
          "required": [
            "did",
            "config"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did",
              "description": "The DID to update the document for."
            },
            "config": {
              "ref": "town.muni.arbiter.defs#didDocConfig",
              "type": "ref",
              "description": "Updated DID document configuration."
            }
          }
        },
        "encoding": "application/json"
      },
      "errors": [
        {
          "name": "ErrDidNotManaged",
          "description": "The specified DID is not managed by this service."
        },
        {
          "name": "ErrPermissionDenied",
          "description": "The requesting user is not allowed to make the request."
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "did"
          ],
          "properties": {
            "did": {
              "type": "string",
              "format": "did"
            }
          }
        },
        "encoding": "application/json"
      },
      "description": "Update the DID doc for a DID that is hosted by this service."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
