CloudPut
Details and Options

- CloudPut returns the resulting CloudObject.
- CloudPut[expr, URL["uri"]] is also supported.
- To copy an existing local file to the cloud, use CopyFile.
- CloudPut allows the following options:
-
CachePersistence Automatic controls the time duration for which an object is cached by a client CloudBase Automatic what cloud to write to CloudObjectNameFormat $CloudObjectNameFormat format to use for the name portion of the URL CloudObjectURLType $CloudObjectURLType base type of URL to use (obj, env, ...) IconRules Automatic icons to use for the object IncludeDefinitions False whether to automatically include dependencies MetaInformation {} metainformation for the object Permissions Automatic permissions for the object - With IncludeDefinitions->False, CloudPut[expr,…] includes only expr itself in the cloud object it creates.
- With IncludeDefinitions->True, CloudPut[expr,…] automatically includes all definitions needed to evaluate expr in the cloud object it creates.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (2)Survey of the scope of standard use cases
Save a named cloud object specified by a string:

https://wolfram.com/xid/0d6e9qt7gs-1qauk2

Save a named cloud object specified by a CloudObject:

https://wolfram.com/xid/0d6e9qt7gs-5ys22


https://wolfram.com/xid/0d6e9qt7gs-l0me5

Save a named cloud object specified by a URL:

https://wolfram.com/xid/0d6e9qt7gs-bg5z8p


https://wolfram.com/xid/0d6e9qt7gs-b4c8ta

Save an unevaluated expression:

https://wolfram.com/xid/0d6e9qt7gs-ip8u5d

The expression has been stored in unevaluated form:

https://wolfram.com/xid/0d6e9qt7gs-lyjlv5
The expression evaluates each time it is read:

https://wolfram.com/xid/0d6e9qt7gs-lfwm1z

Options (6)Common values & functionality for each option
CloudBase (1)
CloudObjectNameFormat (1)
CloudObjectURLType (1)
IncludeDefinitions (1)
MetaInformation (1)
Properties & Relations (1)Properties of the function, and connections to other functions
Put with a CloudObject destination is equivalent to CloudPut:

https://wolfram.com/xid/0d6e9qt7gs-gyvqls

Use PutAppend with a cloud object to append an expression to a cloud object instead of completely replacing its contents as CloudPut does:

https://wolfram.com/xid/0d6e9qt7gs-cwyr0m

Append another expression and read all the expressions in the object:

https://wolfram.com/xid/0d6e9qt7gs-g2z8y3

Possible Issues (1)Common pitfalls and unexpected behavior
Using CloudPut for expressions like APIFunction that have special behavior in the cloud does not activate their special behavior:

https://wolfram.com/xid/0d6e9qt7gs-c9obhr

Calling the cloud object does not do any computation since an expression is simply displayed using HTML, which happens to be imported as something readable by URLExecute:

https://wolfram.com/xid/0d6e9qt7gs-hbluy

In order to create a usable APIFunction, it must be deployed with CloudDeploy or CloudPublish:

https://wolfram.com/xid/0d6e9qt7gs-3xedh

Now it reads the parameters and evaluates the function when invoked, as intended:

https://wolfram.com/xid/0d6e9qt7gs-ct2ca0

Wolfram Research (2014), CloudPut, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudPut.html (updated 2019).
Text
Wolfram Research (2014), CloudPut, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudPut.html (updated 2019).
Wolfram Research (2014), CloudPut, Wolfram Language function, https://reference.wolfram.com/language/ref/CloudPut.html (updated 2019).
CMS
Wolfram Language. 2014. "CloudPut." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudPut.html.
Wolfram Language. 2014. "CloudPut." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/CloudPut.html.
APA
Wolfram Language. (2014). CloudPut. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudPut.html
Wolfram Language. (2014). CloudPut. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/CloudPut.html
BibTeX
@misc{reference.wolfram_2025_cloudput, author="Wolfram Research", title="{CloudPut}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/CloudPut.html}", note=[Accessed: 01-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_cloudput, organization={Wolfram Research}, title={CloudPut}, year={2019}, url={https://reference.wolfram.com/language/ref/CloudPut.html}, note=[Accessed: 01-April-2025
]}