Chilkat Online Tools

Python / ForgeRock Identity Cloud Collection / Step 3: Delete assetlinks.json

Back to Collection Items

import sys
import chilkat

# This example assumes the Chilkat API to have been previously unlocked.
# See Global Unlock Sample for sample code.

http = chilkat.CkHttp()

# Adds the "Authorization: Bearer <access_token>" header.
http.put_AuthToken("<access_token>")

# resp is a CkHttpResponse
resp = http.QuickRequest("DELETE","https://id.mycompany.com/.well-known/assetlinks.json")
if (http.get_LastMethodSuccess() == False):
    print(http.lastErrorText())
    sys.exit()

print(str(resp.get_StatusCode()))
print(resp.bodyStr())

Curl Command

curl -X DELETE
	-H "Authorization: Bearer <access_token>"
https://id.mycompany.com/.well-known/assetlinks.json

Postman Collection Item JSON

{
  "name": "Step 3: Delete assetlinks.json",
  "request": {
    "method": "DELETE",
    "header": [
    ],
    "body": {
      "mode": "raw",
      "raw": "",
      "options": {
        "raw": {
          "language": "json"
        }
      }
    },
    "url": {
      "raw": "{{customDomainUrl}}/.well-known/assetlinks.json",
      "host": [
        "{{customDomainUrl}}"
      ],
      "path": [
        ".well-known",
        "assetlinks.json"
      ]
    }
  },
  "response": [
  ]
}