Saltar al contenido principal
POST
Create a Geo Target

Autorizaciones

Authorization
string
header
requerido

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.

Cuerpo

application/json
name
string
requerido

The name of the geographic target. Can be whatever the user wants to name the geo target for easier reference.

Ejemplo:

"Toronto Area"

areas
object[]
requerido

A list of areas to include in the geo target. Each area object represents some location on a map.

Ejemplo:
range
integer

The additional distance around the selected locations to include in the target. This only applies when targeting a city.

Ejemplo:

3

unit
string

The unit of distance for the range field. Accepted units are "miles" and "kilometers". This only applies when targeting a city.

Ejemplo:

"kilometers"

inclusive
boolean

Whether it is an inclusion or an exclusion target. Set to true if inclusion, and false if exclusion.

Ejemplo:

false

Respuesta

default - application/json

successful operation

name
string

The name of the geographic target. Can be whatever the user wants to name the geo target for easier reference.

Ejemplo:

"Toronto Area"

range
integer

The additional distance around the selected locations to include in the target. This only applies when targeting a city.

Ejemplo:

3

unit
string

The unit of distance for the range field. Accepted units are "miles" and "kilometers". This only applies when targeting a city.

Ejemplo:

"kilometers"

inclusive
boolean

Whether it is an inclusion or an exclusion target. Set to true if inclusion, and false if exclusion.

Ejemplo:

false

object
string

A string denoting the current resource being requested or affected.

Ejemplo:

"geo_target"

id
integer

The current resource identifier (ID).

Ejemplo:

1796

self
string

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

Ejemplo:

"/v2/geo-targets/1796"

areas
object[]

A list of areas to include in the geo target. Each area object represents some location on a map.