API Reference
Label

Create label

code examples curl location globoff 'https //api catenda com/v2/projects/{project id}/labels' \\ \ header 'accept application/json' \\ \ header 'content type application/json' \\ \ data '{ "name" "", "color" "" }'var myheaders = new headers(); myheaders append("accept", "application/json"); myheaders append("content type", "application/json"); var raw = json stringify({ "name" "", "color" "" }); var requestoptions = { method 'post', headers myheaders, body raw, redirect 'follow' }; fetch("https //api catenda com/v2/projects/{project id}/labels", requestoptions) then(response => response text()) then(result => console log(result)) catch(error => console log('error', error));require "uri" require "json" require "net/http" url = uri("https //api catenda com/v2/projects/{project id}/labels") https = net http new(url host, url port) https use ssl = true request = net http post new(url) request\["accept"] = "application/json" request\["content type"] = "application/json" request body = json dump({ "name" "", "color" "" }) response = https request(request) puts response read body import requests import json url = "https //api catenda com/v2/projects/{project id}/labels" payload = json dumps({ "name" "", "color" "" }) headers = { 'accept' 'application/json', 'content type' 'application/json' } response = requests request("post", url, headers=headers, data=payload) print(response text) responses // ok { "id" "397t0ccc8f74619096c738de15dc6512", "name" "label 1", "color" "#6aa84f", "group" { "id" "357t0ccc8f74719096c734de18fc6512", "name" "group name" }, "deleted" false }