Back to Collection Items
var
begin
CkJsonArray_AddObjectAt(jarr,-1);CkJsonObject_UpdateString(jsonObj_1,'relation[0]','delegate_permission/common.handle_all_urls');CkJsonObject_UpdateString(jsonObj_1,'relation[1]','delegate_permission/common.get_login_creds');CkJsonObject_UpdateString(jsonObj_1,'target.namespace','web');CkJsonObject_UpdateString(jsonObj_1,'target.site','https://id.mycompany.com');CkHttp_putAuthToken(http,'<access_token>');CkJsonArray_EmitSb(jarr,sbRequestBody);
Curl Command
curl -X PUT
-H "Authorization: Bearer <access_token>"
-d '[
{
"relation": [
"delegate_permission/common.handle_all_urls",
"delegate_permission/common.get_login_creds"
],
"target": {
"namespace": "web",
"site": "https://id.mycompany.com"
}
}
]'
https://id.mycompany.com/.well-known/assetlinks.json
Postman Collection Item JSON
{
"name": "Step 1: Create or update assetlinks.json",
"request": {
"method": "PUT",
"header": [
],
"body": {
"mode": "raw",
"raw": "[\n {\n \"relation\": [\n \"delegate_permission/common.handle_all_urls\",\n \"delegate_permission/common.get_login_creds\"\n ],\n \"target\": {\n \"namespace\": \"web\",\n \"site\": \"https://id.mycompany.com\"\n }\n }\n]",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "{{customDomainUrl}}/.well-known/assetlinks.json",
"host": [
"{{customDomainUrl}}"
],
"path": [
".well-known",
"assetlinks.json"
]
}
},
"response": [
]
}