SP へContentType.id プロパティ (sp.js)
Web パーツを Web パーツ ページ上の別の場所に移動します。
**適用対象:**apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.ContentType.get_id ()
戻り値
[Type]:の SPContentTypeId
注釈
ContentTypeId型では、指定したコンテンツ タイプの識別子です。Id は、16 進数の文字で構成される文字列です。識別子では、現在のサイト コレクションとサイトに対する相対的な一意であり、プレフィックスとその親ContentTypeIdのContentTypeIdのパターンを実行する必要があります。
他のリソースのエンドポイント
エンドポイント URI 構造
http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/id
HTTP 要求
このリソースには、次の HTTP コマンドがサポートしています。
- 投稿
投稿の書式
POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/id
書式を取得します。
GET http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/id