Tags API
API methods to manage Tags
Last updated
API methods to manage Tags
Last updated
To set tag values for HWIDs and UserIDs, use the /setTags method from Device API.
POST
https://api.pushwoosh.com/json/1.3/addTag
Creates a tag in your account.
Name | Type | Description |
---|---|---|
Possible tag value types:
1 - Integer
2 - String
3 - List
4 - Date
5 - Boolean
6 - Decimal. Ex: 19.95
7 - Version. Ex: "1.0.0.0"
POST
https://api.pushwoosh.com/json/1.3/deleteTag
Completely removes a tag with all the associated information from the database.
POST
https://api.pushwoosh.com/json/1.3/listTags
Retrieves a list of tags on the account.
Tag types:
1 - Integer
2 - String
3 - List
4 - Date
5 - Boolean
6 - Decimal. Ex: 19.95
7 - Version. Ex: "1.0.0.0"
POST
https://api.pushwoosh.com/api/v2/audience/bulkSetTags
Sets tag values for the list of devices.
When using the bulkSetTags method, ensure that tag values are set for a minimum of 50 devices.
GET
https://api.pushwoosh.com/api/v2/audience/bulkSetTags/{request_id}?detailed=false
Returns the status of /bulkSetTags operation
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
Name | Type | Description |
---|---|---|
auth*
string
API access token from Pushwoosh Control Panel.
tag*
object
Tag parameters.
tag.name*
string
Tag name.
tag.type*
integer
Tag type. See possible values below.
tag.application_specific
boolean
Defines whether the tag value should be different for multiple apps or be the same across multiple apps.
auth*
string
API access token from Pushwoosh Control Panel.
tag*
object
Tag parameters.
tag.name*
string
Name of a tag to delete.
auth*
string
API access token from Pushwoosh Control Panel.
application*
String
Pushwoosh app code.
auth*
String
API access token from Pushwoosh Control Panel.
create_missing_tags
Boolean
If true, missing tags are created automatically.
devices*
Object
Array of devices.
devices.hwid
String
Can be used to identify a device instead of user_id or push_token
devices.user_id
String
Can be used to identify a user instead of hwid or push_token
devices.push_token
String
Can be used to identify a device instead of hwid or user_id
devices.list_operator
String
Defines how to set values for tags of the list type: set, append, or remove
devices.tags*
Object
Values to set for the tags specified.
request_id
String
request id from previous /bulkSetTags call
detailed
Boolean
(true/false) whether to return detailed per-device info