application/json

Body Required

Updates a redirect url.

Responses

  • 200 application/json

    OK - Resource successfully updated

    Hide response attributes Show response attributes object
  • 403 application/json

    Forbidden

    Hide response attribute Show response attribute object
    • status string Required

      Shortcode is blocked

      Value is shortcode_blocked. Default value is shortcode_blocked.

  • 404 application/json

    The server cannot find the requested resource. The endpoint may be invalid or the resource may no longer exist.

    Hide response attribute Show response attribute object
PUT /api
curl \
 --request PUT 'http://localhost:8787/api' \
 --header "Authorization with Header: $API_KEY" \
 --header "Content-Type: application/json" \
 --data '{"shortcode":"string","redirect":"string"}'
Request examples
{
  "shortcode": "string",
  "redirect": "string"
}
Response examples (200)
{
  "status": "string",
  "shortcode": "string",
  "redirect": "string"
}
Response examples (403)
{
  "status": "shortcode_blocked"
}
Response examples (404)
{
  "message": "string"
}