{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"Update a DEX test.","properties":{"path":{"type":"object","properties":{"account_id":{"$ref":"#/definitions/digital-experience-monitoring_account_identifier","description":"Unique Cloudflare account ID."},"dex_test_id":{"$ref":"#/definitions/digital-experience-monitoring_uuid","description":"Unique identifier for a DEX test."}},"required":["account_id","dex_test_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-schemas-http"}},"required":["path","body"],"additionalProperties":false,"definitions":{"digital-experience-monitoring_account_identifier":{"description":"Unique identifier linked to an account.","type":"string","maxLength":32,"examples":["01a7362d577a6c3019a474fd6f485823"]},"digital-experience-monitoring_uuid":{"description":"API Resource UUID tag.","type":"string","maxLength":36,"examples":["f174e90a-fafe-4643-bbbc-4a0ed4fc8415"]},"digital-experience-monitoring_device-dex-test-schemas-http":{"type":"object","properties":{"data":{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-schemas-data"},"description":{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-schemas-description"},"enabled":{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-schemas-enabled"},"interval":{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-schemas-interval"},"name":{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-schemas-name"},"target_policies":{"allOf":[{"$ref":"#/definitions/digital-experience-monitoring_device-dex-test-target-policies"}]},"targeted":{"type":"boolean"},"test_id":{"$ref":"#/definitions/digital-experience-monitoring_schemas-test-id"}},"required":["name","interval","enabled","data"]},"digital-experience-monitoring_device-dex-test-schemas-data":{"description":"The configuration object which contains the details for the WARP client to conduct the test.","type":"object","properties":{"host":{"description":"The desired endpoint to test.","type":"string","examples":["https://dash.cloudflare.com"]},"kind":{"description":"The type of test.","type":"string","enum":["http","traceroute"],"examples":["http"]},"method":{"description":"The HTTP request method type.","type":"string","enum":["GET"],"examples":["GET"]}},"required":["kind","host"],"examples":[{"host":"https://dash.cloudflare.com","kind":"http","method":"GET"}]},"digital-experience-monitoring_device-dex-test-schemas-description":{"description":"Additional details about the test.","type":"string","examples":["Checks the dash endpoint every 30 minutes"]},"digital-experience-monitoring_device-dex-test-schemas-enabled":{"description":"Determines whether or not the test is active.","type":"boolean","examples":[true]},"digital-experience-monitoring_device-dex-test-schemas-interval":{"description":"How often the test will run.","type":"string","examples":["30m"]},"digital-experience-monitoring_device-dex-test-schemas-name":{"description":"The name of the DEX test. Must be unique.","type":"string","examples":["HTTP dash health check"]},"digital-experience-monitoring_device-dex-test-target-policies":{"description":"DEX rules targeted by this test","type":"array","items":{"$ref":"#/definitions/digital-experience-monitoring_dex_target_policy"}},"digital-experience-monitoring_schemas-test-id":{"description":"The unique identifier for the test.","type":"string","maxLength":32,"examples":["372e67954025e0ba6aaa6d586b9e0b59"]},"digital-experience-monitoring_dex_target_policy":{"type":"object","properties":{"default":{"description":"Whether the DEX rule is the account default.","type":"boolean"},"id":{"description":"The id of the DEX rule.","allOf":[{"$ref":"#/definitions/digital-experience-monitoring_uuid"}]},"name":{"description":"The name of the DEX rule.","type":"string"}},"required":["id"]}}},"name":"Update Device DEX test","id":"cloudflare.device-dex-test-update-device-dex-test","example":{"path":{"account_id":"01a7362d577a6c3019a474fd6f485823","dex_test_id":"f174e90a-fafe-4643-bbbc-4a0ed4fc8415"},"body":{"name":"HTTP dash health check","interval":"30m","enabled":true,"data":{"host":"https://dash.cloudflare.com","kind":"http","method":"GET"}}},"maxRequests":1,"summary":false}}