{"_id":"5771af04b0ea6b0e006a5237","__v":0,"githubsync":"","project":"56cecbdb44c5700b0095c03a","parentDoc":null,"user":"56cecbb2e50c9c1b008303eb","version":{"_id":"56cecbdc44c5700b0095c03d","project":"56cecbdb44c5700b0095c03a","__v":10,"createdAt":"2016-02-25T09:39:40.121Z","releaseDate":"2016-02-25T09:39:40.121Z","categories":["56cecbdc44c5700b0095c03e","56d1d2c05ad7ad0b00b7e809","56d1d2fa5ad7ad0b00b7e80a","56d369331660770b00081159","56d3693d1660770b0008115a","56e5361e7990160e002e3fbc","56e5362775eb791700a9c4d2","57a9030947f2f419009188d4","57b4705ee9e4c60e00f6f4c3","5828f5b04774ab0f005179a2"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"category":{"_id":"56e5362775eb791700a9c4d2","__v":6,"project":"56cecbdb44c5700b0095c03a","pages":["56e590ae69d7890e000ec286","56e590fa3c29b117008dae50","56e6f058d66be417007d2364","56e7eaa8f0fafd36008faf59","56ea8db9ed3ad20e004e5a02","56ea8f3e0252fb17008804ac"],"version":"56cecbdc44c5700b0095c03d","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-13T09:43:03.596Z","from_sync":false,"order":7,"slug":"remote-api","title":"Server API"},"editedParams":true,"editedParams2":true,"metadata":{"title":"","description":"","image":[]},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-06-27T22:56:04.349Z","link_external":false,"link_url":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[{"name":"","code":"{\n  \"success\" : true\n}","language":"json","status":200},{"name":null,"code":"{\n  \"errors\" : [\"The request body is not a valid JSON or doesn't match the expected structure\"]\n}","language":"json","status":400},{"name":"wrong parameters","code":"{\n  \"errors\" : [\"Wrong parameters\"]\n}","language":"json","status":400}]},"settings":"","examples":{"codes":[{"code":"{\n    \"ad_id\": \"d3d22a03-3309-4473-1234-7f34761acd42\",\n    \"device_id\": \"639e21fd64c01234\",\n    \"tags\": [\n        {\n            \"name\": \"sports\",\n            \"value\": true,\n            \"type\": \"bool\"\n        },\n        {\n            \"name\": \"politics\",\n            \"value\": false,\n            \"type\": \"bool\"\n        }\n    ]\n}","language":"json"}]},"method":"post","auth":"required","params":[{"_id":"5771af04b0ea6b0e006a523a","ref":"","in":"body","required":true,"desc":"unique identifier for the device within your app, generated by you or from our SDK","default":"","type":"string","name":"device_id"},{"_id":"5771af04b0ea6b0e006a5239","ref":"","in":"body","required":false,"desc":"advertizer identifier such as the [Android AdvertisingId](https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient#inherited-method-summary) or","default":"","type":"string","name":"ad_id"},{"_id":"5771af04b0ea6b0e006a5238","ref":"","in":"body","required":true,"desc":"array of [Tag](doc:objects#section-tag)","default":"","type":"array_object","name":"tags"}],"url":"/v1/tags"},"isReference":false,"order":8,"body":"","excerpt":"Set device's tags. If the tag doesn't already exist for the app this call will create it.","slug":"tags-set-devices-tags","type":"endpoint","title":"/tags - set device's tags"}

post/tags - set device's tags

Set device's tags. If the tag doesn't already exist for the app this call will create it.

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

device_id:
required
string
unique identifier for the device within your app, generated by you or from our SDK
ad_id:
string
advertizer identifier such as the [Android AdvertisingId](https://developers.google.com/android/reference/com/google/android/gms/ads/identifier/AdvertisingIdClient#inherited-method-summary) or
tags:
required
array of objects
array of [Tag](doc:objects#section-tag)

Examples


Result Format