Help for this page

Select Code to Download


  1. or download this
     curl ENDPOINT \
      -H "Authorization: Bearer ACCESS_TOKEN" -X POST \
      -F attributes='{"name":"test.txt", "parent":{"id":"0"}}' \
      -F file=@test.txt
    
  2. or download this
    my $json = encode_json {"name" => "test.txt", "parent" => {"id" => 0}}
    +;
    
    ...
               Content_Type => 'multipart/form-data' .
      );