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 XL, SAS Innovate 2024 Recap
Wednesday, May 15, 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
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.
Select SAS Training centers are offering in-person courses. View upcoming courses for: