Pular para o conteúdo

Edit a Short Link Campaign

PUT
/short_link_campaigns/{code}

Edit the values of a specific Short Link Campaigns. If the Campaign is not found then the HTTP code response will be 404.

code
required
string
>= 1 characters <= 36 characters

Short_link_campaigns code

The updated short_link_campaigns resource

Media type application/json

Short link campaigns

object
type
required

Tipo da campanha de links curtos

integer
Allowed values: 1 2
name
required

Nome da campanha de links curtos

string
>= 1 characters <= 100 characters
url
required

URL da campanha de links curtos

string
>= 1 characters
group_id

ID do grupo da campanha de links curtos

integer | null
>= 1

Short_link_campaigns resource updated

Short link campaigns

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
@context
One of:
string
type

Tipo da campanha de links curtos

integer
Allowed values: 1 2
id

Identificador único da campanha de links curtos

string | null
name

Nome da campanha de links curtos

string
>= 1 characters <= 100 characters
url

URL da campanha de links curtos

string
>= 1 characters
created_at

Timestamp when the entity was added to the system by the user

integer
group_id

ID do grupo da campanha de links curtos

integer | null
>= 1
Example
{
"@context": {
"hydra": "http://www.w3.org/ns/hydra/core#"
},
"type": 1
}

Invalid input

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

Resource not found

O endereço IP foi bloqueado temporariamente, pois durante um curto período de tempo foram enviadas várias solicitações com credenciais inválidas. Aguarde e tente mais tarde.

Code Samples

#!/usr/bin/env bash
curl -X PUT https://api.lox24.eu/short_link_campaigns/campaign_id_here \
-H 'Content-Type: application/json' \
-H 'X-LOX24-AUTH-TOKEN: 1234567:e3f3a759b6677959b6ebfcxxxxxxxxxx' \
-d '{
"type": 2,
"name": "test #2",
"url": "https://some-destination-endpoint.here"
}'