cURL
Tags
Attach Tags
Attach one or more tags to sources, transformations, destinations, and other catalog resources.
POST
cURL
The attach endpoint associates one or more tags with a set of resources. It accepts a list of tagDocumentation Index
Fetch the complete documentation index at: https://docs.nekt.com/llms.txt
Use this file to discover all available pages before exploring further.
names — any name that does not yet exist in your organization is created on the fly, and any name that already exists is reused. Every resource list in the request body is then attached to every tag in names.
This makes it possible to tag a single resource, apply several tags to a single resource, or apply tags to many resources in a single call.
Request body
| Parameter | Type | Required | Description |
|---|---|---|---|
names | array of strings | Yes | Tag names to attach. Tags that don’t exist are created automatically. |
sources | array of UUIDs | No | Source IDs to tag. |
transformations | array of UUIDs | No | Transformation IDs to tag (covers queries, notebooks, and histories). |
destinations | array of UUIDs | No | Destination IDs to tag. |
visualizations | array of UUIDs | No | Visualization IDs to tag. |
layers | array of UUIDs | No | Layer IDs to tag. |
folders | array of UUIDs | No | Folder IDs to tag. |
tables | array of UUIDs | No | Table IDs to tag. |
volumes | array of UUIDs | No | Volume IDs to tag. |
At least one resource list must contain at least one ID. Tag names provided in
names but missing from the organization are created before the attachment happens.Response
The endpoint returns the full list of tags that were attached — both the ones that already existed and the ones that were created during the call.Example: attach one tag to a single source
Use this pattern when you want to label an individual resource, for example marking a single Facebook Ads source as part of your marketing stack.Example: attach multiple tags to one transformation
Multiple names in a single request attach every tag to every listed resource. Tags that do not yet exist are created before the attachment.Example: batch attach tags across sources, transformations, and destinations
A single request can target every resource type at once. Every tag innames is attached to every ID listed in the resource arrays.
Python example: tag every source that matches a pattern
The snippet below lists all sources, filters them by slug prefix, and attaches a tag to the whole batch in a single call.Related
- Detach Tags — remove tags from the same resource types.
- List Tags — browse existing tags in your organization.
Authorizations
API Key authentication. Format: 'x-api-key: api_key'
Body
Maximum string length:
255