Replace existing rendition of file

PUT {{baseUrl}}/instances/file/:type/:id/contents

Replace existing rendition to a new rendition of file

Request Body

{"0"=>{"name"=>"Replace existing rendition", "mime_type"=>"text/plain", "content_size"=>0, "blob_id"=>"cj1iMTg2N2MxZC00MmE3LTQzZjEtYjAxYy01NDdlMTczZGJkZjImaT1iZGVmZDJiOC1iMDhkLTQ1NTUtYTAyNS1mNWRmYzMxZTYwNTQ=", "rendition_type"=>"primary", "height"=>0, "weight"=>0, "traits"=>{"cms_rendition_trait"=>{"instance_renditions"=>{"file_name"=>"SecondaryContent.doc", "isPublishable"=>false}}}}}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: OK

{"_embedded":{"collection":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"_links":{"next":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"previous":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"self":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"first":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"last":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}}}