Hi
How can i update labels for a space using rest api , i tried this code below and nothing has been changed without display error
const bodyData2 = {
"key": "FS",
"metadata": {
"labels": {
"results":[
{
"prefix": "ok",
"name": "ok",
"id": "ok",
"label": "ok"
}
]
},
}
};
AP.request({
url: "/rest/api/space/"+space_key+"?expand=metadata.labels",
type: 'PUT',
contentType: "application/json",
Accept: 'application/json',
data: JSON.stringify(bodyData2),
success: function (data) {
console.log(' success put ')
console.log(data)
}
}).catch(function (error) {
console.log('error' + error)
});