cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 

Create Property Template in API2 Java

Ritesh
Explorer | Level 3

Hi,

I want to save some custom properties to a file that I upload. It appears that in order to add property/property groups, I need to supply a template Id but I'm not able to find a way to create/add a template using the Java SDK. Can you provide some pointers on the process for creating templates?

 

Thanks

5 Replies 5

Re: Create Property Template in API2 Java

Dropboxer
Dropboxer
The endpoints for adding templates aren't currently exposed, as the feature is still in development. I'll send this along as a request for them though.

Re: Create Property Template in API2 Java

AlexC New member | Level 2
New member | Level 2

Any news about how can we add custom properties to a file?

Re: Create Property Template in API2 Java

Dropboxer
Dropboxer

Yes, this functionality is now available. You can find the documentation for them in the Java SDK here, starting under "propertiesAdd":

https://dropbox.github.io/dropbox-sdk-java/api-docs/v3.0.x/

The other official SDKs also have methods for these.

Or, if you're not using an SDK, you can find the corresponding HTTP endpoints documented here:

https://www.dropbox.com/developers/documentation/http/documentation#file_properties 

Re: Create Property Template in API2 Java

Ritesh2 New member | Level 2
New member | Level 2

It appears that the apps with "app folder" permissions are not allowed to use these endpoints. What are apps like those supposed to do if they want to add file properties?

Re: Create Property Template in API2 Java

Dropboxer
Dropboxer

@Ritesh2 Unfortunately, the file properties functionality is not support for apps with the app folder permission. I'll send this along as a feature request for support for that, but I can't promise if/when that would be implemented.

If you need to use the file properties functionality, you'll need to register a new app with the "Full Dropbox" permission.

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?