Saltar al contenido principal
POST
Create a Publisher Source 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.

Parámetros de ruta

publisher_id
integer
requerido

Identifier of the Publisher.

Cuerpo

application/json
name
string
requerido

The name of the Publisher Source Target

Maximum string length: 255
Ejemplo:

"Example Publisher Source Target"

publisher_sources
(integer | string)[]
requerido

The Publisher Sources to target. Publisher Sources must already exist before creating the target. Can use the Publisher Source ID or Publisher Source Name Slug.

Ejemplo:
inclusive
boolean

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

Ejemplo:

true

Respuesta

default - application/json

successful operation

name
string

The name of the Publisher Source Target

Maximum string length: 255
Ejemplo:

"Example Publisher Source Target"

inclusive
boolean

Whether it is an inclusion or an exclusion target

Ejemplo:

true

publisher_sources
string[]

Array of Publisher Source IDs

Ejemplo:
object
string

A string denoting the current resource being requested or affected.

Ejemplo:

"product_db_publisher_source_target"

self
string

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

Ejemplo:

"/v2/publishers/56335/product-db/source_targets/12345"

id
integer

The current resource identifier (ID).

Ejemplo:

12345

publisher_source_slugs
string[]

Array of Publisher Source Name Slugs

Ejemplo:
created_at
string<date-time>

The timestamp when this resource was created.

Ejemplo:

"2023-01-01T00:00:00"

created_by
integer | null

The user ID that created this resource.

Ejemplo:

null

updated_at
string<date-time> | null

The timestamp when this resource was last updated.

Ejemplo:

null

updated_by
integer | null

The user ID that last updated this resource.

Ejemplo:

null