New command: Set the default content type for a list
See original GitHub issueUsage
spo list contenttype default set [options]
Description
Set the default content type for a list
Options
| Option | Description |
|---|---|
-u, --webUrl <webUrl> |
URL of the site where the list is located |
--listId [listId] |
ID of the list on which to set default content type, specify listId or listTitle but not both |
--listTitle [listTitle] |
Title of the list on which to set default content type, specify listId or listTitle but not both |
--contentTypeId <contentTypeId> |
ID of the content type to set as default on the list |
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:22 (16 by maintainers)
Top Results From Across the Web
Add a content type to a list or library - Microsoft Support
To change the default content type for the list or library, change the content type that is displayed first on the New Document...
Read more >Content-Type - HTTP - MDN Web Docs - Mozilla
The directive consists of 1 to 70 characters from a set of characters (and not ending with white space) known to be very...
Read more >How to get default content type of list programmatically
SPContentType defaultCT = list.ContentTypes[0];. This should get you the first content type which is the default one.
Read more >Set default content type header of Spring RestTemplate
First you have to create request interceptor: public class JsonMimeReqInterceptor implements ClientHttpRequestInterceptor { @Override public ...
Read more >SharePoint Online: Set Default Content Type using PowerShell
Go to List or Library Settings >> On the Settings page, Click on “Change New Button Order and Default Content Type” link under...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Updated OP to use the new command template format
All yours @arnieraju. Appreciate your help 👍