Update a tag

Updates a tag's name, type, or description. Renaming a tag also updates automations and segments that reference the old name. The new name follows the same rules as POST /tags: 1 to 250 characters, no commas, line breaks, or HTML markup, and emoji and other 4-byte characters are not supported; a name that breaks a rule fails with 422 (see the 422 response for the two body shapes). If another tag already uses the new name, the request fails with 422 and errors[0].detail is "Tag already exists". Returns 404 if the tag does not exist (unless the new name is already in use, which is checked first and returns 422). Requires the tag management permission.

{
	"tag":{
		"tag": "My Tag",
		"tagType": "contact",
		"description": "Description"
	}
}
{
    "tag": {
        "tagType": "contact",
        "tag": "My Tag",
        "description": "Description",
        "cdate": "2018-08-17T13:41:16-05:00",
        "links": {
            "contactGoalTags": "https://:account.api-us1.com/api/:version/tags/2/contactGoalTags"
        },
        "id": "2"
    }
}
Path Params
int32
required

ID of the tag to update

Body Params
tag
object
Responses

Language
Credentials
Header
URL
LoadingLoading…
Response
Choose an example:
application/json