Adds a tag to a data source of your organization.
Required role: ORG_EDITOR, and the current user must have the MODIFY permission on the data source.
Tags belong to your organization and are shared by all its resources (data sources, projects, layers, styles, ...). If your organization already has a tag with this name (case-insensitive), that tag is reused, with its existing spelling; otherwise a new tag is created.
- HTML markup is removed from
tag. tagcan't be empty and is limited to 2048 characters.- Adding a tag the data source already has does nothing (the tag's id is returned).
The data source's tags are in its tags (GET /organizations/{organization}/datasources/{datasource}), and can be used to filter the list of data sources (tag = 'hydrography').
Response
result is the id of the tag. Use it to remove the tag with DELETE .../tags/{tag}.
Data sources shared by another organization
Tags are only visible to the organization that owns the data source, and only that organization can tag it. organization must be the organization of the access token: with the owner's organization id the request returns 403, and with yours it returns 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||