Change URL Status
Change URL Status
Postman Collection
URL
POST: /v1/shortener/statusHEADERS
Params | Value |
---|---|
Authorization | Basic Auth |
Content-Type | application/json |
Accept | application/json |
Parameters
Param | Data Type | Required |
---|---|---|
url | String | Required when requestId not present |
requestId | String | Required when url not present |
status | String | Required (1 or 0) |
Request
Body Sample
{
"requestId": "REQ473708703373400",
"url": "https://f1m.in/4RaUgTh",
"status": "1"
}
cURL Sample
curl --location --request POST '/v1/shortener/status' \
--header 'Authorization: Basic Zj5MDVhZWY1NTc5ODgxMjg0NzEwZTZkMzM5ODMyYmU2YTJkNjg5' \
--header 'Content-Type: application/json' \
--data-raw '{
"requestId": "REQ473708703373400",
"url": "https://f1m.in/4RaUgTh",
"status": "1"
}'
Response
success
{
"code": "200",
"status": "success",
"message": "URL status updated."
}
failed
{
"code": "404",
"status": "failed",
"error": "URL status update failed."
}