Copy as Markdown[View as Markdown](/docs/sdk/functions/addServiceToSystem.md)

***

# Function: addServiceToSystem()

> **addServiceToSystem**(`directory`): (`id`, `resource`, `version`?) => `Promise`<`void`>

Defined in: systems.ts:177

## Parameters[​](#parameters "Direct link to Parameters")

| Parameter   | Type     |
| ----------- | -------- |
| `directory` | `string` |

## Returns[​](#returns "Direct link to Returns")

`Function`

### Parameters[​](#parameters-1 "Direct link to Parameters")

| Parameter           | Type                                     |
| ------------------- | ---------------------------------------- |
| `id`                | `string`                                 |
| `resource`          | { `id`: `string`; `version`: `string`; } |
| `resource.id`       | `string`                                 |
| `resource.version`? | `string`                                 |
| `version`?          | `string`                                 |

### Returns[​](#returns-1 "Direct link to Returns")

`Promise`<`void`>
