Create object instances under the folder

POST {{baseUrl}}/instances/folder/:type/:id/items

Create object instances under the folder.

Request Body

{"name"=>"File Instance", "display_name"=>"Document", "description"=>"Instance with Contents", "acl_id"=>"92c9d913-a4d9-4b7e-9a61-8cdbd5af2ce7", "parent_folder_id"=>"19c4a782-6b4c-4038-99f6-e554f5568703", "type"=>"File_Instance_Type", "linked_parent_folder_ids"=>["f6a96d92-58c0-49c0-bad2-857b2bb80ba0", "9f19d006-8bdd-413e-a002-d7731e1d2228"], "owner"=>{"id"=>"2315365e-7b1a-496a-af0e-2f19f59b076a"}, "policies"=>["3fa85f64-5717-4562-b3fc-2c963f66afa6"], "holds"=>[{"hold_id"=>"ace21a65-db41-4b83-8e58-818e264e1060", "reason"=>"This entity should not be deleted"}], "tags"=>["instance create"], "ancestor_names"=>["Folder containing the instance"], "properties"=>{"first_name"=>"Kristen", "last_name"=>"Fischer", "age"=>36}, "traits"=>{"cms_instance_trait"=>{"instance_properties"=>{"size"=>100, "purpose"=>"internal"}}}, "version_label"=>["file instance version"], "renditions"=>[{"name"=>"primary content for instance", "rendition_type"=>"primary", "blob_id"=>"cj1lODQ5YTllNS1hMzBmLTRjYzMtODMyMC0yY2M2YzA0ZWZjMjgmaT1lMzMxZWQ5OC0zYWNjLTRhZjYtOWFkNi1iZTNmMjhlYzllY2Y=", "mime_type"=>"application/pdf", "content_size"=>443, "height"=>164, "width"=>200, "traits"=>{"cms_rendition_trait"=>{"instance_renditions"=>{"file_name"=>"PrimaryContent.pdf", "isPublishable"=>true}}}}, {"name"=>"secondary content for instance", "rendition_type"=>"secondary", "blob_id"=>"cj1hNmZmMzNmMy0yNDQ2LTRkYzEtYTk4ZC1lNzlmZDQ4MTA1MWYmaT03NWUwM2VmOC1iNGI2LTRlNmEtYjYyZC00MjA4NTQ0MGY0ZDA=", "mime_type"=>"application/msword", "content_size"=>500, "height"=>180, "width"=>192, "traits"=>{"cms_rendition_trait"=>{"instance_renditions"=>{"file_name"=>"SecondaryContent.doc", "isPublishable"=>false}}}}]}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring
Acceptstring

RESPONSES

status: Created

{"name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"created_by":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"updated_by":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"create_time":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"update_time":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"etag":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"owner":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"display_name":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"description":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"type":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"parent_folder_id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"linked_parent_folder_ids":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"acl_id":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"latest":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"deleted":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"hidden":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"category":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"tags":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"traits":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"properties":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"ancestor_ids":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"linked_ancestor_ids":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"ancestor_names":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"policies":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"holds":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"chronicle_id":"urn:uuid:c09c7702-5f6d-8f52-cedf-8c03b6bfed27","version_no":66765082,"version_label":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}],"lock_owner_identity":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"lock_time":"1949-09-19T15:59:10.681Z","renditions":[{"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":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}}