docs
  1. Resources
  2. Redirects
  3. Update A Redirect.

Update a redirect.

v1.204.1
OpenAPI 3.0.3

This is the specification of the SCAYLE Admin API.

For more information about how to interact with the Admin API, you can read the respective developer guide. The developer guide includes code samples for our PHP SDK, for our Java SDK and for JavaScript and curl.

Authentication is done via X-Access-Token HTTP Header as described here.

Base url should be prefixed with /api/admin/v1.

If a client side timeout is deemed necessary, it is recommended to set it at a minimum of 380 seconds.

Server:https://{tenant-space}.admin.api.scayle.cloud/v1
Client Libraries

Redirects

​

Redirects

Update a redirect.

​

This endpoint can be used to update a redirect.

See more details in the Developer Guide.

Path Parameters

  • The shop key.

  • Id of the redirect.

Body

required
application/json

Responses

  • application/json
  • application/json
  • application/json
  • application/json
  • application/json
Request Example for put/shops/{shopKey}/redirects/{redirectId}
let newRedirect = {
     source: "https://google2.com"
  };

 let response = await client.apis.Redirects.update({redirectIdentifier: 1}, {requestBody: newRedirect});
 let updatedRedirect = response.body;

{
  "source": "https://google.com",
  "target": "https://google2.com",
  "statusCode": 302,
  "isRegex": false,
  "priority": 1,
  "createdAt": "2024-06-20T13:20:21+00:00",
  "updatedAt": "2024-06-20T13:20:21+00:00"
}

Models

​
​
​

Last updated: December 02, 2026