Back to Collection Items
void ChilkatSample(void)
{
jarr.AddObjectAt(-1); jsonObj_1->UpdateString(L"relation[0]",L"delegate_permission/common.handle_all_urls"); jsonObj_1->UpdateString(L"relation[1]",L"delegate_permission/common.get_login_creds"); jsonObj_1->UpdateString(L"target.namespace",L"web"); jsonObj_1->UpdateString(L"target.site",L"https://id.mycompany.com"); http.put_AuthToken(L"<access_token>"); jarr.EmitSb(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": [
]
}