> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# publisherDocumentDefinitionToYaml()

- Package: [@gooddata/sdk-code-convertors](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-code-convertors/index.md)
- Kind: function
- Stability: alpha
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-code-convertors/src/from/declarativePublisherDocumentToYaml.ts

> **Alpha API.** Initial API, highly likely to change outside SemVer. Don't build on it in production. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The same document, written from what the frontend holds: the object reference it is identified by becomes the bare id the YAML names it with.

**Signature:**

```typescript
export declare function publisherDocumentDefinitionToYaml(publisherDocument: IPublisherDocumentDefinitionV1): {
    content: string;
    json: Report;
};
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| publisherDocument | [IPublisherDocumentDefinitionV1](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.ipublisherdocumentdefinitionv1/index.md) |  |

**Returns:**

{ content: string; json: Report; }
