Add a tag to a data source

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.
  • tag can'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.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required

Id of your organization (must match the access token)

uuid
required

Id of the data source

Body Params

Tag to add

string
required
length between 0 and 2048

Name of the tag, 2048 characters at most. HTML markup is removed. An existing tag of your organization with the same name (case-insensitive) is reused.

Responses

Language
Credentials
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json