Skip to content
Skip to Content
DevelopersAPI referenceTags

Merge tags into one on all the user's items

POST
/v1/tags/merge

Like renameTag for several tags at once: each of tags becomes into. into may be one of tags (it is left alone). An API key needs write access to items.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Request Body

application/json
  1. body
tags*array<>
Items1 <= items <= 50
into*string
Lengthlength <= 64

Response Body

Done. items is how many of the user's items changed.

application/json
  1. response
items*integer
Range0 <= value
Example Request
curl -X POST 'https://example.com/v1/tags/merge' \  -H 'Content-Type: application/json' \  -d '{  "tags": [    "string"  ],  "into": "string"}'
Example Response
{  "items": 0}