Create a tag

Creates or updates a tag; tag IDs are immutable after creation. Set visibility via X-Contentful-Tag-Visibility header (defaults to private).

Authentication

AuthorizationBearer

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

Path parameters

space_idstringRequired
ID of the space in the form of a string
environment_idstringRequired
ID of the environment in form of a string
tag_idstringRequired
ID of the tag in form of a string

Headers

X-Contentful-Tag-VisibilitystringOptional
The tag visibility can be set in the header with this header. The visibility value set in the header overrides that in the payload.
X-Contentful-VersionstringOptional
Version of the tag to update

Request

This endpoint expects a map from strings to any.

Response headers

Content-Typestring

Content-Type

Response

Created - Resource created successfully