Skip to main content
POST
tagmanager.version.create

Authorizations

Authorization
string
header
required

API key: sk_live_…

Headers

Idempotency-Key
string
required

Required: this capability has an external effect.

Maximum string length: 255
Pramaan-Account
string

Optional. One of your account ids (GET /v1/accounts): run on that account, whatever your routing rules say. The response header X-Pramaan-Account names the account that ran.

Pramaan-End-User
string

Optional. Your own tag for your end user: a sticky: end_user rule keeps them on the account that first served them.

Maximum string length: 256
Pramaan-End-User-Group
string

Optional. Your end user's group, matched by rules with endUserGroup.

Maximum string length: 64

Body

application/json
ref
string
required

The ref returned by tagmanager.workspaces.list.

Pattern: ^(ref_[0-9A-HJKMNP-TV-Z]{26}|rh_[A-Za-z0-9_-]{24,1024})$
name
string
required

Display name.

Required string length: 1 - 256
confirm
boolean
required

Confirm this approved action. Creating a version consumes its workspace.

notes
string

Notes describing the configuration.

Required string length: 1 - 4096

Response

The result

name
string

Display name.

Required string length: 1 - 256
type
string

Configuration type.

Required string length: 1 - 128
fingerprint
string

Revision fingerprint; pass on update to prevent overwriting a concurrent change.

Required string length: 1 - 256
notes
string

Notes describing the configuration.

Required string length: 1 - 4096
paused
boolean

Whether the tag is paused.

firingTriggers
string[]

Tags only, in list results: names of the triggers that fire this tag. A trigger outside the workspace trigger list (a built-in trigger such as All Pages) is shown as "(built-in or outside this workspace)". Empty: the tag never fires.

Maximum array length: 100
Required string length: 1 - 256
blockingTriggers
string[]

Tags only, in list results: names of the triggers that block this tag.

Maximum array length: 100
Required string length: 1 - 256
referencedVariables
string[]

Variable names referenced as {{Name}} anywhere in this record's parameters and conditions, nested ones included; each name once.

Maximum array length: 200
Required string length: 1 - 256
parameters
object[]

Scalar configuration parameters. Nested and resource-reference parameters are not supported.

Maximum array length: 100
ref
string

Reference to what this call created. Pass it as ref to Follow-up calls for this resource.