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

Parameters: update_tags
NameTypeDescription
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
curl -X PATCH https://cotlet.dev/api/v1/lever/opportunities/opportunity_8c41d2/tags \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("lever", "update_tags", {"opportunity_id":"opportunity_8c41d2"})
Node.js
const result = await cotlet.call('lever', 'update_tags', {"opportunity_id":"opportunity_8c41d2"});
CLI
cotlet call lever update_tags --data '{"opportunity_id":"opportunity_8c41d2"}'

Example response

JSON

{
  "opportunity_id": "5c3d8a17-e2b4-49f6-8d01-7a9b6c4e2f05",
  "tags": [
    "portfolio-strong",
    "strong-referral"
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.