Remove a portfolio tag from an organization.
DELETE
/v1/organizations/{id}/tags
const url = 'https://api.adversarial.com/api/v1/organizations/123e4567-e89b-12d3-a456-426614174000/tags';const options = { method: 'DELETE', headers: {'Content-Type': 'application/json'}, body: '{"tag_id":"2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://api.adversarial.com/api/v1/organizations/123e4567-e89b-12d3-a456-426614174000/tags \ --header 'Content-Type: application/json' \ --data '{ "tag_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" }'Removes the label from this organization only. The tag itself is not deleted and stays available for other organizations in the portfolio.
Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
The UUID of the organization
Example
123e4567-e89b-12d3-a456-426614174000Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
tag_id
required
string format: uuid
Examplegenerated
{ "tag_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"}Responses
Section titled “Responses”The tags you still have applied to the organization
Media typeapplication/json
object
tags
required
Array<object>
object
content
required
string
creator_id
required
string format: uuid
id
required
string format: uuid
org_id
string | null format: uuid
Examplegenerated
{ "tags": [ { "content": "example", "creator_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "org_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" } ]}Missing tag write permission in the organization
Organization not found, or the tag is not applied to it