Newer Version Available

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

CMS Contents Variant

Get, update, or delete a managed content variant.
Resource
1/connect/cms/contents/variants/variantId
Available version
54.0
HTTP methods
GET, PUT, DELETE
In version 56.0 and later, you can upload binary files. To upload a binary file, you must send it in a multipart/form-data request. For information about how to create the multipart/form-data message, see Uploading Binary Files.
Request body for PUT
Root XML tag
<managedContentVariantUpdateInputRepresentation>
JSON example
1{
2  "title": "My Updated Title",
3  "urlName": "my_updated_url_name",
4  "contentBody": {
5     "bannerImage":"MCZOCY2AM5PFBADN5UDRB53TLXR4",
6     "featuredEvent":"MCZOCY2AM5PFBADN5UDRB53TLXR4",
7     "excerpt":"this is my updated excerpt",
8     "body":"&lt;p&gt;Test updated body&lt;/p&gt;"
9     }
10}
Properties
Name Type Description Required or Optional Available Version
contentBody Map<String, Object> Body of the managed content variant. Optional 54.0
title String Title of the managed content variant. Optional 54.0
urlName String URL name of the managed content variant within the org. Optional 54.0
Response body for GET and PUT
Managed Content Variant
Response for DELETE
204: Successful Delete