> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superdoc.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# citations.bibliography.configure

> Configure the bibliography style.

## Summary

Configure the bibliography style.

* Operation ID: `citations.bibliography.configure`
* API member path: `editor.doc.citations.bibliography.configure(...)`
* Mutates document: `yes`
* Idempotency: `idempotent`
* Supports tracked mode: `no`
* Supports dry run: `yes`
* Deterministic target resolution: `yes`

## Expected result

Returns a BibliographyMutationResult indicating success or a failure.

## Input fields

| Field | Type | Required | Description |
| - | - | - | - |
| `style` | string | yes | |
| `target` | object(kind="block") | yes | |
| `target.kind` | `"block"` | yes | Constant: `"block"` |
| `target.nodeId` | string | yes | |
| `target.nodeType` | `"bibliography"` | yes | Constant: `"bibliography"` |

### Example request

```json theme={null}
{
  "style": "example",
  "target": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "bibliography"
  }
}
```

## Output fields

### Variant 1 (success=true)

| Field | Type | Required | Description |
| - | - | - | - |
| `bibliography` | object(kind="block") | yes | |
| `bibliography.kind` | `"block"` | yes | Constant: `"block"` |
| `bibliography.nodeId` | string | yes | |
| `bibliography.nodeType` | `"bibliography"` | yes | Constant: `"bibliography"` |
| `success` | `true` | yes | Constant: `true` |

### Variant 2 (success=false)

| Field | Type | Required | Description |
| - | - | - | - |
| `failure` | object | yes | |
| `failure.code` | string | yes | |
| `failure.details` | any | no | |
| `failure.message` | string | yes | |
| `success` | `false` | yes | Constant: `false` |

### Example response

```json theme={null}
{
  "bibliography": {
    "kind": "block",
    "nodeId": "node-def456",
    "nodeType": "bibliography"
  },
  "success": true
}
```

## Pre-apply throws

* `TARGET_NOT_FOUND`
* `INVALID_TARGET`
* `INVALID_INPUT`
* `CAPABILITY_UNAVAILABLE`

## Non-applied failure codes

* None

## Raw schemas

> [accordion] Raw input schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "style": {
>       "type": "string"
>     },
>     "target": {
>       "additionalProperties": false,
>       "properties": {
>         "kind": {
>           "const": "block"
>         },
>         "nodeId": {
>           "type": "string"
>         },
>         "nodeType": {
>           "const": "bibliography"
>         }
>       },
>       "required": [
>         "kind",
>         "nodeType",
>         "nodeId"
>       ],
>       "type": "object"
>     }
>   },
>   "required": [
>     "target",
>     "style"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw output schema
>
> ```json theme={null}
> {
>   "oneOf": [
>     {
>       "additionalProperties": false,
>       "properties": {
>         "bibliography": {
>           "additionalProperties": false,
>           "properties": {
>             "kind": {
>               "const": "block"
>             },
>             "nodeId": {
>               "type": "string"
>             },
>             "nodeType": {
>               "const": "bibliography"
>             }
>           },
>           "required": [
>             "kind",
>             "nodeType",
>             "nodeId"
>           ],
>           "type": "object"
>         },
>         "success": {
>           "const": true
>         }
>       },
>       "required": [
>         "success",
>         "bibliography"
>       ],
>       "type": "object"
>     },
>     {
>       "additionalProperties": false,
>       "properties": {
>         "failure": {
>           "additionalProperties": false,
>           "properties": {
>             "code": {
>               "type": "string"
>             },
>             "details": {},
>             "message": {
>               "type": "string"
>             }
>           },
>           "required": [
>             "code",
>             "message"
>           ],
>           "type": "object"
>         },
>         "success": {
>           "const": false
>         }
>       },
>       "required": [
>         "success",
>         "failure"
>       ],
>       "type": "object"
>     }
>   ]
> }
> ```

> [accordion] Raw success schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "bibliography": {
>       "additionalProperties": false,
>       "properties": {
>         "kind": {
>           "const": "block"
>         },
>         "nodeId": {
>           "type": "string"
>         },
>         "nodeType": {
>           "const": "bibliography"
>         }
>       },
>       "required": [
>         "kind",
>         "nodeType",
>         "nodeId"
>       ],
>       "type": "object"
>     },
>     "success": {
>       "const": true
>     }
>   },
>   "required": [
>     "success",
>     "bibliography"
>   ],
>   "type": "object"
> }
> ```

> [accordion] Raw failure schema
>
> ```json theme={null}
> {
>   "additionalProperties": false,
>   "properties": {
>     "failure": {
>       "additionalProperties": false,
>       "properties": {
>         "code": {
>           "type": "string"
>         },
>         "details": {},
>         "message": {
>           "type": "string"
>         }
>       },
>       "required": [
>         "code",
>         "message"
>       ],
>       "type": "object"
>     },
>     "success": {
>       "const": false
>     }
>   },
>   "required": [
>     "success",
>     "failure"
>   ],
>   "type": "object"
> }
> ```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.