Inserting a set of Labels(Tags) in JIRA REST API

I have a set of labels which I want to insert in the JIRA API. The catch in this is that I dont want to link them with a issue. These labels should be added as part of the JIRA framework and not attached with any specific issue.

Through curl command, I am able to add labels via REST endpoint but it can only be done for a specific issue.

curl -D- -u user:user -X PUT --data “{“update”: { “labels”: [ {“add”: “TestLabel1”} ] } }” -H “Content-Type: application/json” http://ip:port/jira/rest/api/2/issue/Issue-68

Is there a way, I can add them in the framework instead of a particular issue?

I think you may be out of luck. The word “label” doesn’t even appear in the documentation for JIRA’s REST API, and even in JIRA’s Java API, the methods of the LabelManager interface are all qualified with Long issueId.

How about creating a multi-select custom field instead?