Update Smart Link API (Beta)

📘

This API is currently available only for clients hosted in the AWS-USA data centre.

This API is used to update the details of one or multiple smart links by reference id or linkid.

📘

Based on the domain that is assigned, the endpoint domain for your API varies. For more information, refer to the Know Your API Endpoints section.

Headers

The following table describes the request headers:

Request HeaderDescription
content-Typeapplication/json
AuthorizationAccess token in Bearer format

Example: Bearer $(key)

Body Parameters

ParameterTypeMandatoryDescription
criteriaObjectYesSpecifies the object with parameters based on which the URL will be updated.

_ referenceId: Specifies the referenceId.

_ linkid specifies the link id.
bodyObjectYes_ urlContext: Specifies the object with personalization parameters. For example,
{"msisdn": "123456789"}

_ longUrl: Specifies the updated long URL

Request Example



{
  "criteria": {
"referenceId": "6391b6da5481373783e33952"
    "linkid": "Pgr2hEQs"
  },
  "body": {
    "urlContext": {
      "msisdn": "123456789"
    },
    "longUrl": "https://touchstone1.webexcampaign.io/newlink"
  }
}

Response Example

{
    "code": "1007",
    "message": "SmartLinks Details Updated Successfully."
}

Response Parameters

This API will return the following response parameters:

ParametersDescription
codeReturns the success response code.
messageReturns the confirmation message.

Failure Response Codes

The API will return a code within the response as per the following table in case of failure scenarios.

HTTP Status CodeCode within API ResponseDescription
400NABad request
401NAInvalid token or Access token expired
404NANo Entity exists with the given Id.
405NAMethod not supported
500NAInternal server error.
Language