Skip to content

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.

#!/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"
}'
code
required
string

Short_link_campaigns code

The updated short_link_campaigns resource

Short link campaigns

object
type
required

Type of the short link campaign

integer
Allowed values: 1 2
name
required

Name of the short link campaign

string
<= 100 characters
url
required

URL of the short link campaign

string
group_id

Group ID of the short link campaign

integer | null

Short_link_campaigns resource updated

Short link campaigns

object
@id

JSON-LD ID

string
@type

JSON-LD type

string
@context
One of:
string
type

Type of the short link campaign

integer
Allowed values: 1 2
id

Unique identifier of the short link campaign

string | null
name

Name of the short link campaign

string
<= 100 characters
url

URL of the short link campaign

string
created_at

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

integer
group_id

Group ID of the short link campaign

integer | null

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

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

Resource not found

IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.