Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)


represents a dispatcher for deployed URLs that specifies that URLs with relative paths matching the string patterns should give content represented by .


  • CloudDeploy[URLDispatcher[]] yields a cloud object corresponding to an active URL dispatcher. All URLs relative to the URL of this cloud object are normally interpreted using the URL dispatcher.
  • Specific deployment of a cloud object to a particular URL, e.g. by CloudDeploy, overrides any rule for that URL given by a URL dispatcher.
  • In the URLs specified by URLDispatcher, the are treated as textually appended to the base URL defined by the URL of the deployed URL dispatcher.
  • In CloudDeploy[URLDispatcher[{patt1:>,}]], the must start with .
  • Trailing characters in URLs are by default ignored when the URLs are matched. To force an exact match to the end of a URL, include EndOfString in the string pattern.
  • The must be content suitable for deployment using CloudDeploy.
  • The can contain URLDispatcher.
  • When there are nested URLDispatcher specifications, each successive specification is given whatever trailing part of the URL remains after matching preceding specifications.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

URLDispatcher can be used with simple strings:

Click for copyable input

Visiting https://www.wolframcloud.com/objects/74397922-7947-42cc-b2e7-6c1ac191a037/form yields a FormFunction:


Visiting https://www.wolframcloud.com/objects/74397922-7947-42cc-b2e7-6c1ac191a037/api yields an APIFunction:


Visiting the bare URL of the CloudObject yields a page not found error:


URLDispatcher also supports generic string patterns:

Click for copyable input
Click for copyable input
Introduced in 2016