Create a Document, Spreadsheet or Slides

POST {{baseUrl}}/1/admin/threads/new-document

Creates a document, spreadsheet, or slides, returning the new thread in the same format as Get Thread.

Note that for slides threads, this endpoint currently only supports creating a bare-bones, one-slide deck with a given title. Copy a Document or Template provides fuller slides functionality, allowing automatic creation of a new slide deck adapted from an existing one.

Request Body

[{"name"=>"company_id", "value"=>"fugiat e", "datatype"=>"string"}, {"name"=>"content", "value"=>"sint", "datatype"=>"string"}, {"name"=>"format", "value"=>"html", "datatype"=>"string"}, {"name"=>"title", "value"=>"Excepteur reprehenderit esse culpa", "datatype"=>"string"}, {"name"=>"member_ids", "value"=>"culpa adipis", "datatype"=>"string"}, {"name"=>"type", "value"=>"document", "datatype"=>"string"}]

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{"thread":{"id":"","created_usec":-79613853,"updated_usec":4354774,"thread_class":"document","owning_company_id":"adipisicing in elit","author_id":"in exercita","title":"co","is_deleted":false,"is_template":false,"document_id":"in enim incididunt","link":"Lorem laboris est nostrud","type":"spreadsheet","snippet_user_id":"ut tempor","snippet_message":"fug","sharing":{"public":"VIEW","company_id":"IMbAcASGu56","company_mode":"VIEW"}},"user_ids":["eu commodo",""],"shared_folder_ids":["sit non et","mollit non est qui"],"expanded_user_ids":["aliqua quis tempor consequat","fugiat esse dolore"],"invited_user_emails":["esse ullamco","laborum sunt ullamco qui"],"html":"amet velit","markdown":"amet","access_levels":{}}