Update tags
Adds and removes tags on an opportunity.
PATCH https://cotlet.dev/api/v1/lever/opportunities/{opportunity_id}/tags
write
Returns the full tag list after the change. Tags reach nobody and one more call undoes a change, so this tool does not wait for your OK.
Parameters
| Name | Type | Description |
|---|---|---|
| opportunity_id string required | string | Opportunity ID from list_opportunities. |
| add array of strings | array of strings | Tags to add. |
| remove array of strings | array of strings | Tags to remove. |
Request
curl -X PATCH https://cotlet.dev/api/v1/lever/opportunities/opportunity_8c41d2/tags \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("lever", "update_tags", {"opportunity_id":"opportunity_8c41d2"}) const result = await cotlet.call('lever', 'update_tags', {"opportunity_id":"opportunity_8c41d2"}); cotlet call lever update_tags --data '{"opportunity_id":"opportunity_8c41d2"}' Example response
{
"opportunity_id": "5c3d8a17-e2b4-49f6-8d01-7a9b6c4e2f05",
"tags": [
"portfolio-strong",
"strong-referral"
]
}