Skip to content

Add a portfolio tag to an organization.

POST
/v1/organizations/{id}/tags
curl --request POST \
--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" }'

Portfolio tags are your own labels for grouping organizations in the portfolio view. They are separate from register tags, which belong to a single organization and categorize its risks and incidents. Only portfolio tags can be applied to an organization through this endpoint; passing a register tag is rejected.

id
required
string format: uuid

The UUID of the organization

Example
123e4567-e89b-12d3-a456-426614174000
Media typeapplication/json
object
tag_id
required
string format: uuid
Examplegenerated
{
"tag_id": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"
}

The tags you 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"
}
]
}

The tag is not a portfolio tag

Missing tag write permission in the organization

Organization or tag not found

Tag already associated with organization