upsertTags
POST
/v2/tags/import
const url = 'https://api-crm-staging.divinea.com/api/v2/tags/import';const options = {method: 'POST', headers: {APIKey: '<APIKey>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api-crm-staging.divinea.com/api/v2/tags/import \ --header 'APIKey: <APIKey>'Authorizations
Sezione intitolata “Authorizations”Parameters
Sezione intitolata “Parameters”Query Parameters
Sezione intitolata “Query Parameters”email
string
tags
Array<string>
List of tags
type
string
Type, if not empty all the tag sent in the request will be processed as group and will remove the old tags of the same type. If null will be processed as single tags in upsert.
wineryId
string
Winery ID
Responses
Sezione intitolata “Responses”Created
Media type*/*
Array<object>
Tagobject
conditionType
string
contactMatcherType
ContactMatcherType
object
id
string
nameEn
string
nameIt
string
createdAt
string format: date-time
deletedAt
string format: date-time
description
string
id
integer format: int64
manual
boolean
name
string
otherExistingTagTypology
string
predefined
boolean
targetTypology
string
type
string
updatedAt
string format: date-time
values
Array<object>
TagValueobject
contactMatcherOperator
ContactMatcherOperator
object
contactMatcher
ContactMatcher
object
className
string
contactMatcherOperators
Array<object>
ContactMatcherOperatorobject
contactMatcher
object recursive
contactMatcherId
integer format: int64
createdAt
string format: date-time
id
integer format: int64
operator
Operator
object
createdAt
string format: date-time
id
integer format: int64
nameEn
string
nameIt
string
updatedAt
string format: date-time
value
string
updatedAt
string format: date-time
createdAt
string format: date-time
id
integer format: int64
nameEn
string
nameIt
string
updatedAt
string format: date-time
contactMatcherId
integer format: int64
createdAt
string format: date-time
id
integer format: int64
operator
Operator
object
createdAt
string format: date-time
id
integer format: int64
nameEn
string
nameIt
string
updatedAt
string format: date-time
value
string
updatedAt
string format: date-time
createdAt
string format: date-time
id
integer format: int64
stringValue
string
updatedAt
string format: date-time
value
integer format: int64
winery
Winery
object
createdAt
string format: date-time
id
string format: uuid
name
string
updatedAt
string format: date-time