---
title: "为node添加label"
method: POST
path: "/v2/nodes/{node}/label"
tags: ["v2"]
---

# 为node添加label

`POST /v2/nodes/{node}/label`

add label to node

## Path parameters

- `node` string, required

## Request body

- object
  - `labels` string[], required — label值列表 in: body

## Response `200`

{"code":200,"msg":"success","msgcn":"成功","body":nil}

---

[API](https://skmtc.net/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.net/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/goodrain/untitled-api/versions/8c773e222448/schema)
