Skip to main content
POST
/
api
/
v2
/
custom-tags
/
toggle-resource
Assign or unassign tags to resources
curl --request POST \
  --url https://api.instantly.ai/api/v2/custom-tags/toggle-resource \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "tag_ids": [
    "019cc043-e349-7167-b20d-7b81e5694721"
  ],
  "resource_type": 1,
  "resource_ids": [
    "resource-1"
  ],
  "assign": true
}
'
{
  "success": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
tag_ids
string<uuid>[]
required

The list of tag ids to assign or unassign

resource_type
enum<number>
required

The resource type to assign or unassign the tags to

Available options:
1,
2
Example:

1

resource_ids
string[]
required

The list of resource ids to assign or unassign. A resource id is the id of an account or a campaign.

assign
boolean
required

Whether to assign the tags to the resources.

Example:

true

selected_all
boolean

Whether to select all resources.

Example:

false

filter
object

The filter to apply to the resources. These are only used when selected_all is true.

Response

Default Response

success
boolean
Example:

true