The documentation describes `typeDefName` as follows:
> The type definition name of the file. If the file is associated with folder and the client does not provide the value of this parameter, the file-service tries to find the best possible value using type-registry service. If it fails to find a default value, it defaults to "file".
In order to enable the client to provide the correct value for this parameter, would it be possible to get the list of potential values?
Is the "type-registry" service documented / available to end users?
The file service does the following query to the types-registry service, to get matching typeDefName
/types/types?filter=and(startsWith(name,file_),contains(mediaTypes,"xyz"))
Let me know if this answers the question.
Hi @AllanBowe,
Happy New Year! I've posed the question to a developer. He's in the AP region, so I probably won't hear anything until tomorrow. I'll post the response here, once I get something back.
Thanks,
Joe
Join us for SAS Community Trivia
SAS Bowl XLIII, The New SAS Developer Portal
Wednesday, August 14, 2024, at 10 a.m. ET | #SASBowl
The file service does the following query to the types-registry service, to get matching typeDefName
/types/types?filter=and(startsWith(name,file_),contains(mediaTypes,"xyz"))
Let me know if this answers the question.
Thanks both!
Yes it answers the question. I've taken a dump of the types/types endpoint in case anyone else needs the same info: https://gist.github.com/allanbowe/32a47a78e386b3517dd22f292108f2f9
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.