Templates
Set template labels
Replace the template's labels by name (unknown names are created)
Path Parameters
idnumber
workspaceIdnumber
labelsarray<string>
The template's full label set, by name (replace semantics). Unknown names are created. Deduped case-insensitively; at most 10 after dedupe.
Response Body
curl -X PUT "https://lynx-api.trulyinbox.com/v2/workspaces/0/templates/0/labels" \ -H "Content-Type: application/json" \ -d '{ "labels": [ "string" ] }'{
"data": {
"id": 0,
"name": "string",
"subject": "string",
"body": "string",
"status": "DRAFT",
"improvedSubject": "string",
"improvedBody": "string",
"reviewExplanation": {},
"reviewScore": 0,
"createdByUserId": 0,
"ownerName": "string",
"labels": [
{
"id": 0,
"name": "string"
}
],
"reviewStartedAt": "string",
"createdAt": "string",
"updatedAt": "string",
"statusChangedAt": "string",
"approvedOnce": true,
"pausedReason": "string"
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}{
"error": {
"code": "invalid_request",
"message": "string",
"details": {},
"retry_after": 34
},
"meta": {
"request_id": "req_2f1c…",
"timestamp": "2019-08-24T14:15:22Z"
}
}