question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New command: Set the default content type for a list

See original GitHub issue

Usage

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:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:22 (16 by maintainers)

github_iconTop GitHub Comments

2reactions
garrytrindercommented, Feb 2, 2020

Updated OP to use the new command template format

1reaction
waldekmastykarzcommented, Jun 17, 2019

All yours @arnieraju. Appreciate your help 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found