API 參考
更新短網址
更新既有短網址的目標 URL 或標題,透過網域和別名指定短網址。
PUT
Updated short URL details
application/json- body
domain*stringThe domain where the short URL is hosted (e.g., "s.ee")
Length
length <= 255slug*stringThe slug of the short URL to update (e.g., "abc123")
Length
length <= 255target_url*stringThe new destination URL
Length
length <= 2000title*stringThe new title for this short link
Length
length <= 255OK
application/json- response
code?integerResponse status code (200 indicates success)
data?unknownResponse payload
message?stringHuman-readable status message
curl -X PUT 'https://s.ee/api/v1/shorten' \ -H 'Authorization: string' \ -H 'Content-Type: application/json' \ -d '{ "domain": "string", "slug": "string", "target_url": "string", "title": "string"}'Example Response200
{ "code": 0, "data": null, "message": "string"}