---
jsApi: true
title: "[F] addService"

---
```ts
addService(
   program, 
   namespace, 
   details): void
```

Mark the given namespace as a service.

## Parameters

| Parameter | Type | Description |
| :------ | :------ | :------ |
| `program` | [`Program`](../interfaces/Program.md) | Program |
| `namespace` | [`Namespace`](../interfaces/Namespace.md) | Namespace |
| `details` | [`ServiceDetails`](../interfaces/ServiceDetails.md) | Service details |

## Returns

`void`
