import requests
url = "https://{FUSION HOST}/api/links/contexts"
payload = {
    "resources": [
        {
            "type": "APPKIT_APP",
            "id": "<string>",
            "uri": "<string>",
            "canonicalName": "<string>"
        }
    ],
    "contexts": [
        {
            "type": "APPKIT_APP",
            "id": "<string>",
            "uri": "<string>",
            "canonicalName": "<string>"
        }
    ],
    "bypassCache": True
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.json())