# Service programs: update, delete

URL: /code/mcp/service/records-update · Id: `page:code/mcp/service/records-update`

> The Service Verbs update, delete as MCP do programs, with inputs, result, refusals and an example.

Reference for [Service](/business/nouns/service), one group of [Service programs](/code/mcp/service).

### Service.update
Changes the given properties of a Service. [Verb page](/business/nouns/service/update?interface=mcp).

```text
do: return await $.Service.update(input)
```

Emits `Service.updated`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Service. |
| `name` | `string` | No | The name of the Product. |
| `promise` | `text` | No | What the Customer can rely on. |
| `floor` | `string` | No | The human floor: `none`, `sign`, or `practice`. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `service` | [Service](/business/nouns/service) | Yes | The Service. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Service.update({ id: 'service_Eq1ssq4AOW', floor: 'none' })"
  }
}
```

### Service.delete
Deletes a Service: a soft delete that keeps its history, undone by `Thing.restore`. [Verb page](/business/nouns/service/delete?interface=mcp).

```text
do: return await $.Service.delete(input)
```

Emits `Service.deleted`.

**Inputs**

| Input | Type | Required | Description |
| --- | --- | --- | --- |
| `id` | `string` | Yes | The id of the Service. |

**Returns**

| Output | Type | Required | Description |
| --- | --- | --- | --- |
| `service` | [Service](/business/nouns/service) | Yes | The Service. |

**Refuses when**

| Check | Error | Fix | Then call |
| --- | --- | --- | --- |
| The key is valid, but its scopes do not allow this operation. | [`forbidden`](/code/api/errors/forbidden) | Use a key whose scopes cover the operation, or ask an owner of the namespace to grant them. | None. |

**Example**

```json
{
  "name": "do",
  "arguments": {
    "code": "return await $.Service.delete({ id: 'service_Eq1ssq4AOW' })"
  }
}
```