influxdata / openapi

An OpenAPI specification for influx (cloud/oss) apis.
MIT License
17 stars 10 forks source link

feat(scripts): add/remove labels APIs #490

Closed saraghds closed 2 years ago

saraghds commented 2 years ago

Closes https://github.com/influxdata/idpe/issues/15515 This PR publishes new APIs on scripts that handle adding labels to a script and removing labels from a script:

PATCH /scripts/{id}/labels/add
PATCH /scripts/{id}/labels/remove

This also includes two new filters on the GET /scripts API that helps with filtering scripts by labels and a part of a label name: labelNames and labelContains