Newer Version Available

This content describes an older version of this product. View Latest

Asset File

Create an asset file.
Resource
1/connect/files/fileId/asset
1/connect/communities/communityId/files/fileId/asset
Available version
38.0
HTTP methods
POST

POST doesn’t take a request body and doesn’t require request parameters.

Note

Request parameters for POST
Parameter Name Type Description Required or Optional Available Version
assetLabel String Master label for the asset file. This internal label doesn’t get translated. Optional 46.0
developerName String Developer name for the asset file. In managed packages, this field prevents naming conflicts on package installations. With this field, a developer can change the object’s name in a managed package and the changes are reflected in a subscriber’s org. Optional 46.0
isVisibleBy​ExternalUsers Boolean Indicates whether unauthenticated users can see the asset file (true) or not (false). If not specified, the default value is false. Optional 43.0
shareWith String An org ID, Experience Cloud site ID, or content workspace ID with which to share the file. Optional 38.0 only
shareWithIds String[] A list of org IDs, Experience Cloud site IDs, or content workspace IDs with which to share the file. Optional 39.0
Response body for POST
File Detail