Skip to content

Delete Resource Validity

Request

Delete a resource validity

Security
oAuth2ClientCredentials
Path
resource_idstring, (uuid)(Resource Id)required
idstring, (uuid)(Id)required
DELETE
/v1/resources/resource/{resource_id}/validity/{id}
import requests

resource_id = "YOUR_resource_id_PARAMETER"
id = "YOUR_id_PARAMETER"
url = "https://api.qargo.com/v1/resources/resource/" + resource_id + "/validity/" + id

headers = {"Authorization": "Bearer <YOUR_TOKEN_HERE>"}

response = requests.delete(url, headers=headers)

if response.status_code == 204:
  print("success")
else:
  data = response.json()
  print(data)

Responses

Successful Response

Response
No content