Skip to content

Modify Host Labels



POST /api/v1/object/hosts/{host}/label/modify

Overview

Modify one or multiple labels for a host. After a successful API call, there is typically a cache period of up to 5 minutes.

Route Parameters

Parameter Name Type Required Description
host string Y Hostname

Body Request Parameters

Parameter Name Type Required Description
source string Y Data source
Example: HOST
Allow empty: False
labels array List of object names
Allow empty: False

Parameter Supplementary Notes

Response

{
    "code": 200,
    "content": true,
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-96EDF6EA-847D-4E23-BE1B-B387257B6BFA"
}