Toggle Short URL Active State
Activates or deactivates a short URL by toggling its current active state. This endpoint can be used to enable or disable dynamic QR codes associated with the short URL. Returns the updated short URL object.
Authorization
bearerAuth Enter your API key to access this API
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://qrcodly.theosirislabs.com/api/v1/short-url/string/toggle-active-state"{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"shortCode": "strin",
"destinationUrl": "http://example.com",
"qrCodeId": "8a619d64-dbe8-4c9d-9490-babe22a53a28",
"isActive": true,
"createdBy": "string"
}{
"message": "string",
"code": 0
}{
"message": "string",
"code": 0
}{
"message": "string",
"code": 0
}{
"message": "string",
"code": 0
}Reserve a short URL GET
Generates and reserves a new short URL for the authenticated user. This ensures the short URL is unique and ready for use. Returns the reserved short URL object including its code, target URL (if set), and metadata.
Update a short URL PATCH
Updates the active state or the destination URL of the specified short URL. Requires authentication and can only be performed by the owner of the short URL. Returns the updated short URL object.