# Function: writeGuide()

```ts
function writeGuide(
   node, 
   spaceId, 
   body
): Promise<void>;
```

Defined in: [packages/core/src/schemas/guides.ts:41](https://github.com/leifriksheim/minca/blob/main/core/src/schemas/guides.ts#L41)

Writes a guide, or rewrites it when the space has one of that name that this
account wrote and it says something else. One someone else wrote holds the
name: theirs stays. Defines `std.guide` first when the space lacks it.

## Parameters

| Parameter | Type |
| ------ | ------ |
| `node` | [`P2PNode`](https://minca.dev/api/core/interfaces/P2PNode.md) |
| `spaceId` | `string` |
| `body` | \{ `collections?`: readonly `string`[]; `name`: `string`; `text`: `string`; `title`: `string`; \} |
| `body.collections?` | readonly `string`[] |
| `body.name?` | `string` |
| `body.text?` | `string` |
| `body.title?` | `string` |

## Returns

`Promise`\<`void`\>
