BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
AllanBowe
Barite | Level 11

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?

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs
1 ACCEPTED SOLUTION

Accepted Solutions
sinasj
SAS Employee

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.

View solution in original post

3 REPLIES 3
joeFurbee
Community Manager

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 L, PROC HTTP
Wednesday, February 19, 2024, at 10:00 a.m. ET | #SASBowl

sinasj
SAS Employee

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.

AllanBowe
Barite | Level 11

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

/Allan
MacroCore library for app developers
Data Workflows, Data Contracts, Data Lineage, Drag & drop excel EUCs to SAS 9 & Viya - Data Controller
DevOps and AppDev on SAS 9 / Viya / Base SAS - SASjs

sas-innovate-white.png

Missed SAS Innovate in Orlando?

Catch the best of SAS Innovate 2025 — anytime, anywhere. Stream powerful keynotes, real-world demos, and game-changing insights from the world’s leading data and AI minds.

 

Register now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 2169 views
  • 2 likes
  • 3 in conversation