Skip to main content
GET
Get a Single Platform Target

Authorizations

Authorization
string
header
required

API key en el header Authorization: Basic TU_API_KEY. La key va tal cual, sin codificar en base64. Las credenciales se entregan al comenzar la integración.

Path Parameters

id
integer
required

Identifier of the platform target you'd like to get.

Query Parameters

fields
string

Restrict the fields you wish to retrieve by listing the desired fields formatted as a comma-separated list. Fields like "object", "self", and "id" are always returned.

Response

default - application/json

successful operation

name
string

The name of the platform target.

Example:

"Focus LG G Series"

platform
string

A preset platform target including devices of a certain form factor. Possible values are "any" (also called "specific"), "mobile","tablet","mobile_and_tablet", and "desktop". When this field is set to a value other than "any" or "specific", the browser and OS targets will all be enabled and cannot be disabled or customized.

Example:

"any"

desktop_browser_targets
any[]
deprecated

A list of desktop internet browsers to target. The list may include any combination of "chrome", "safari", "firefox", "opera", "edge", "ie", and "others". The "others" option encompasses all other possible desktop browsers not in this list.

Example:
mobile_browser_targets
any[]
deprecated

A list of mobile internet browsers to target. The list may include any combination of "chrome", "safari", "firefox", "opera", "blackberry", "uc", "edge", "samsung", and "others". The "others" option encompasses all other possible mobile browsers not on this list.

desktop_os_targets
any[]
deprecated

The list of desktop operating systems to target. The list may include any combination of "mac", "windows", "chromeos", "ubuntu", "linux", and "others". The "others" option encompasses all other possible desktop operating systems not in this list.

Example:
mobile_os_targets
any[]
deprecated

The list of mobile operating systems to target. The list may include any combination of "android", "ios", "blackberry", "windows_phone", and "others". The "others" option encompasses all other possible mobile operating systems not in this list.

browser_targets
object

An object containing a breakdown of the available browser targets, organized by mobile and desktop. When creating or updating the target, setting this field's value to true will enable every browser target for both mobile and desktop options. Specific browsers may be targeted by providing their name and setting the name's value to true to include the browser in the target or false to exclude the browser.

Cannot set this field to false, because if no browsers are allowed to match then there will never be a positive match to the target.

os_targets
object

An object containing a breakdown of the available operating system targets, organized by mobile and desktop. When creating or updating the target, setting this field's value to true will enable every browser target for both mobile and desktop options. Specific operating systems may be targeted by providing their name and setting the name's value to true to include the OS in the target or false to exclude the OS.

Cannot set this field to false, because if no operating systems are allowed to match then there will never be a positive match to the target.

device_targets
any[]

The list of device-specific patterns to target. For example, "Apple*" will target all Apple devices and "Samsung Galaxy S5" will only target devices with that name. Device targeting is not available for the "desktop" platform.

Example:
resolution_targets
object

An object containing a breakdown of the resolution targets. The resolution targets allow you to target different screen sizes.

object
string

A string denoting the current resource being requested or affected.

Example:

"platform_target"

id
integer

The current resource identifier (ID).

Example:

3654

self
string

The relative URL of the current resource being requested or affected.

Example:

"/v2/platform-targets/3654"