s.id Public API
  1. Links
  • Introduction
  • v1
    • Links
      • List Links
        GET
      • Create Link
        POST
      • Link Detail by Short
        GET
      • Link Detail
        GET
      • Update Link
        POST
      • Protected Link
        POST
      • Dispossable Link
        POST
      • Archive Link
        PUT
      • Unarchive Link
        PUT
    • Quota
      GET
    • Me
      GET
  • Ping
    GET
  1. Links

Dispossable Link

POST
https://api.s.id/v1/links/{id}/disposable

Request

Path Params
id
string 
required
Header Params
X-Auth-Id
string 
required
X-Auth-Key
string 
required
Body Params application/json
disposable
boolean 
required
expired_at
integer 
required
Expired Links in UNIX Timestamp
Example
{
  "disposable": false,
  "expired_at": 1660705017
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.s.id/v1/links//disposable' \
--header 'X-Auth-Id;' \
--header 'X-Auth-Key;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "disposable": false,
    "expired_at": 1660705017
}'

Responses

🟢200OK
application/json
Body
code
integer 
required
message
string 
required
data
null 
required
Example
{
  "code": 200,
  "message": "link_disposable",
  "data": null
}
Modified at 2024-06-19 12:23:29
Previous
Protected Link
Next
Archive Link
Built with