Mark models downloadable with API

download
model
api

(Bellus3d) #1

How to mark the model already been uploaded to be downloadable with API?

And how to choose license with API?

I am using python BTW.

Thanks


#2

You can find the license UIDs here: https://api.sketchfab.com/v3/licenses

You can set a license during the original upload POST:

https://docs.sketchfab.com/data-api/v3/index.html#!/models/post_v3_models

or with a PATCH after upload:

https://docs.sketchfab.com/data-api/v3/index.html#!/models/patch_v3_models_uid


(Bellus3d) #3

Thanks.

But how to enable the Downloadable option by API? I didn't see that in PATCH


#4

Just set license to a valid license.


(Bellus3d) #6

Thanks, got it.


(Zuo) #7

How to disable the downloadable option from the API?

I was able to enable it including the license key but no luck trying to disable it, I think I need to add something to the license value in order to "delete" the content of the previous one but not sure what I'm missing.


#8

Try setting it to null ?