> For the complete documentation index, see [llms.txt](https://docs.navigaglobal.com/navigaid/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.navigaglobal.com/navigaid/services/admin-api/routes/services.md).

# Services

## /services.get

<mark style="color:blue;">`GET`</mark> `https://admin-api.imid.infomaker.io/v1/services.get`

Get service by id

#### Query Parameters

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| serviceId | string | Service id  |

{% tabs %}
{% tab title="200 Successful" %}

```javascript
{
  "id": "Service id",
  "name": "dashboard",
  "description": "Description of speicific part xxx",
  "updatedBySub": "infomaker_b8b9373b-a30d-459d-a44d-f270afb5e581"
}
```

{% endtab %}

{% tab title="400 Bad Request" %}

```javascript
"errors.api.BadRequestError"
```

{% endtab %}

{% tab title="500 Internal Server Error" %}

```javascript
"errors.api.InternalServerError"
```

{% endtab %}
{% endtabs %}

## /services.list

<mark style="color:blue;">`GET`</mark> `https://admin-api.imid.infomaker.io/v1/services.list`

List services

#### Path Parameters

| Name | Type   | Description |
| ---- | ------ | ----------- |
|      | string |             |

{% tabs %}
{% tab title="200 Successful" %}

```javascript
[
  {
    "id": "Service id",
    "name": "dashboard",
    "description": "Description of speicific part xxx",
    "updatedBySub": "infomaker_b8b9373b-a30d-459d-a44d-f270afb5e581"
  }
]
```

{% endtab %}

{% tab title="400 Bad Request" %}

```javascript
"errors.api.BadRequestError"
```

{% endtab %}

{% tab title="500 Internal Server Error" %}

```javascript
"errors.api.InternalServerError"
```

{% endtab %}
{% endtabs %}

## /services.create

<mark style="color:green;">`POST`</mark> `https://admin-api.imid.infomaker.io/v1/services.create`

Create service

#### Request Body

| Name        | Type   | Description                       |
| ----------- | ------ | --------------------------------- |
| name        | string | Infomaker service name            |
| description | string | Description of speicific part xxx |

{% tabs %}
{% tab title="200 Successful" %}

```javascript
{
  "id": "Service id",
  "name": "dashboard",
  "description": "Description of speicific part xxx",
  "updatedBySub": "infomaker_b8b9373b-a30d-459d-a44d-f270afb5e581"
}
```

{% endtab %}

{% tab title="400 Bad Request" %}

```javascript
"errors.api.BadRequestError"
```

{% endtab %}

{% tab title="500 Internal Server Error" %}

```javascript
"errors.api.InternalServerError"
```

{% endtab %}
{% endtabs %}

## /services.delete

<mark style="color:green;">`POST`</mark> `https://admin-api.imid.infomaker.io/v1/services.delete`

Delete service by id

#### Request Body

| Name      | Type   | Description |
| --------- | ------ | ----------- |
| serviceId | string | Service id  |

{% tabs %}
{% tab title="204 No Content" %}

```javascript
""
```

{% endtab %}

{% tab title="400 Bad Request" %}

```javascript
"errors.api.BadRequestError"
```

{% endtab %}

{% tab title="500 Internal Server Error" %}

```javascript
"errors.api.InternalServerError"
```

{% endtab %}
{% endtabs %}

## /services.setDescription

<mark style="color:green;">`POST`</mark> `https://admin-api.imid.infomaker.io/v1/services.setDescription`

Set service description by id

#### Request Body

| Name        | Type   | Description                       |
| ----------- | ------ | --------------------------------- |
| serviceId   | string | Service id                        |
| description | string | Description of speicific part xxx |

{% tabs %}
{% tab title="200 Successful" %}

```javascript
{
  "description": "Description of speicific part xxx"
}
```

{% endtab %}

{% tab title="400 Bad Request" %}

```javascript
"errors.api.BadRequestError"
```

{% endtab %}

{% tab title="500 Internal Server Error" %}

```javascript
"errors.api.InternalServerError"
```

{% endtab %}
{% endtabs %}

## /services.setName

<mark style="color:green;">`POST`</mark> `https://admin-api.imid.infomaker.io/v1/services.setName`

Set service name by id

#### Request Body

| Name      | Type   | Description            |
| --------- | ------ | ---------------------- |
| serviceId | string | Service id             |
| name      | string | Infomaker service name |

{% tabs %}
{% tab title="200 Successful" %}

```javascript
{
  "name": "dashboard"
}
```

{% endtab %}

{% tab title="400 Bad Request" %}

```javascript
"errors.api.BadRequestError"
```

{% endtab %}

{% tab title="500 Internal Server Error" %}

```javascript
"errors.api.InternalServerError"
```

{% endtab %}
{% endtabs %}
