How to update a tag ?

Here you can update the tag configuration.
It’s very useful when you changed the Prebid.js Global Var for instance.

You have to send a Json payload with the following structure. The tagId is required.

{
"id": "<TAG_ID_PROVIDED>", // [REQUIRED]
"name": "domain.com", // [REQUIRED] Need to be unique accross all the tags
"pbjs_adapter": "new_pbjs" // [REQUIRED] the name of the Prebidjs global variable
"domains": ["domain.com", "another_domain.com", "sub.domain.com"], // [OPTIONAL] allowed domains for this tagdId
}
curl -H 'Content-Type: application/json' -H 'x-api-key: <API_KEY>' -X POST --data '<JSON_STRING>' https://api.pubstack.io/v1/me/tags

The response is the updated tag. 

{
"id":"9f7d550a-120a-4a5d-xxxx-fc7deb033a0f",
"name":"your tag name+updated",
"state":"ACTIVE",
"domains":[
"domain.com", "another_domain.com"
],
"pbjs_adapter":"pbjs_v2",
"loader":"https://boot.pbstck.com/v1/tag/9f7d550a-120a-4a5d-xxxx-fc7deb033a0f"
}