---
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, string, required

## Request body

- string, string

## Response `200`

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

## Changes

- **2017-11-07** `7b547fba71aa` — 1 info
  - api operation id `labels` removed and replaced with `AddLabel`

[Change history](https://skmtc.dev/goodrain/apis/untitled-api/changes/v2/nodes/:node/label/post.md)

---

[API](https://skmtc.dev/goodrain/apis/untitled-api.md) · [All operations](https://skmtc.dev/goodrain/apis/untitled-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/goodrain/untitled-api/revisions/7b547fba71aa/schema)
