Chilkat Online Tools

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

Back to Collection Items

<?php

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

$http = new COM("Chilkat_9_5_0.Http");

// Adds the "Authorization: Bearer <access_token>" header.
$http->AuthToken = '<access_token>';

// resp is a Chilkat_9_5_0.HttpResponse
$resp = $http->QuickRequest('DELETE','https://id.mycompany.com/.well-known/assetlinks.json');
if ($http->LastMethodSuccess == 0) {
    print $http->LastErrorText . "\n";
    exit;
}

print $resp->StatusCode . "\n";
print $resp->BodyStr . "\n";


?>

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": [
  ]
}