Hello,
There are a few problems with the data api v3
-
When I post a new model, the uid of the new model is not returned in the response
-
When using the swagger UI to test the API, the category keyword is doubled somehow
https://docs.sketchfab.com/data-api/v3/index.html#!/models/post_v3_models
you can see it in the generated curl command
curl -X POST --header ‘Content-Type: multipart/form-data’ --header ‘Accept: application/json’ --header ‘Authorization: Token c4101261832f45d6b72ca92d87ccd625’ -F name=test -F categories=categories=animals -F modelFile=@“test.zip” -F isPublished=true -F description=test desc ‘https://api.sketchfab.com/v3/models’
response body:
{
“detail”: {
“categories”: [
“Select a valid choice. categories=animals is not one of the available choices.”
]
}
}
- How should I format the data for categories (array[string]))
When I enter the uid, it’s not accepted:
eg for “Products & Technology”, “uid” is “d7cebaeca8604ebab1480e413404b679”
I tried values like :
d7cebaeca8604ebab1480e413404b679
“d7cebaeca8604ebab1480e413404b679”
{ “d7cebaeca8604ebab1480e413404b679”}
[{ “d7cebaeca8604ebab1480e413404b679”}]
{ “uid:” “d7cebaeca8604ebab1480e413404b679”}
[{ “uid:” “d7cebaeca8604ebab1480e413404b679”}]
but none of those are accepted as valid choices…