# Set service label

`POST /v1/service/@id/label` · scope `services:write`

Set a custom label to identify the service.

## HTTP request

| Item | Value |
| --- | --- |
| URL | `https://api.tino.vn/v1/service/@id/label` |
| Method | `POST` |
| Scope | `services:write` |
| Header | `Authorization: Bearer <token>` |
| Content-Type | `application/json` |
| Tokens that can call it | app tokens (`tinoat_`), personal API tokens (`tinopat_`) |

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `id` | path | string | yes | Service ID |
| `label` | body | string | no | New label |

## Example request

```bash
curl -X POST "https://api.tino.vn/v1/service/100001/label" \
  -H "Authorization: Bearer $TINO_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
  "label": "<label>"
}'
```

`$TINO_TOKEN` is a token with the scope `services:write`. Path parameters in the example are sample values.

SDK ([SDK & examples](/en/docs/sdk)): Python `client.services.set_label(id, id=...)`, Node.js `await client.services.setLabel(id, { id: ... });`, PHP `$client->services->setLabel($id, ['id' => ...]);`.

## Example response

```json
{
 "success": true,
 "info": [
  "service_label_updated"
 ]
}
```

Live sample from a test account with personal data masked; long arrays and strings are trimmed (`… N more item(s)`, `… N more line(s)`).
