機械翻訳について

タイプを読み取る

get

/content/management/api/v1.1/types/{name}

型を読み取ります。

リクエスト

パス・パラメータ
  • 型名識別子は大/小文字が区別され、特殊文字はエンコードする必要があります。
問合せパラメータ
  • Expandパラメータは、タイプresponseを使用して子リソース(archivedFields)をインラインで取得するオプションを提供します。 archivedFieldsrelationshipsまたは「すべて」を受け入れます。
    : expand= すべて
    archivedFieldsおよびタイプ・レスポンスの関係を返します。
    : expand= archivedFields
    タイプ・レスポンスでarchivedFieldsを返します。
  • このパラメータは、typeの返されるフィールドを制御するために使用されます。 このパラメータは、フィールド名のカンマ区切りリストを受け入れます。
    すべてのフィールド名は大文字と小文字が区別されるため、ユーザーは問合せで正しいフィールド名を指定する必要があります。

    このパラメータが指定されていない場合、レスポンスにはデフォルトのフィールドが含まれます。

    デフォルトのフィールドは次のとおりです:
    • id
    • name
    • displayName
    • apiName
    • description
    • typeCategory
    • createdBy
    • createdDate
    • updatedBy
    • updatedDate
    • fields
    • properties
    • allowedFileTypes
    • roleName
    • layoutMapping
    • inplacePreview
    • allowedActions
    • archivedFields
    • relationships
    • connectorInfos
    ユーザーは、返されるフィールドを選択できます。 問合せで指定されたフィールド名が正しくないか無効な場合は、エラーが発生します。

    : ?fields=name
    これにより、タイプの名前とリンクのみが返されます。
    デフォルト値: id,name,displayName,apiName,description,typeCategory,createdBy,createdDate,updatedBy,updatedDate,fields,properties,allowedFileTypes,roleName,layoutMapping,inplacePreview,allowedActions,archivedFields,relationships,connectorInfos,jobToken,renditionPolicies
トップに戻る

レスポンス

サポートされているメディア・タイプ

200レスポンス

OK。
本文()
ルート・スキーマ : タイプ
型: object
AggregatedType
ソースを表示
ネストされたスキーマ : allowedActions
型: array
タイプのallowedActions。
ソースを表示
ネストされたスキーマ : allowedFileTypes
型: array
タイプでサポートされているファイル拡張子の許可されたリスト。 これはレスポンス取得の必須プロパティです。 ポスト/プット・リクエストではオプションで、typeCategoryがContentTypeの場合は[ContentItem]にデフォルト設定され、typeCategoryがDigitalAssetTypeの場合は空にデフォルト設定されます。
ソースを表示
ネストされたスキーマ : ItemSubResourceListTypeField
型: object
アイテムSubResource。
ソースを表示
ネストされたスキーマ : connectorInfos
型: array
タイプのconnectorInfos。
ソースを表示
ネストされたスキーマ : date
型: object
date
ソースを表示
ネストされたスキーマ: fields
型: array
タイプで使用されるフィールド。
ソースを表示
ネストされたスキーマ : ItemSubResourceListInplacePreview
型: object
アイテムSubResource。
ソースを表示
ネストされたスキーマ : ItemSubResourceListLayoutMapping
型: object
アイテムSubResource。
ソースを表示
ネストされたスキーマ: properties
型: object
使用可能なその他のプロパティ
ソースを表示
特定のプロパティを入力します。
ネストされたスキーマ : ItemSubResourceTypeRelationships
型: object
アイテムSubResource。
ソースを表示
ネストされたスキーマ : ItemSubResourceListRequiredTaxonomy
型: object
アイテムSubResource。
ソースを表示
ネストされたスキーマ: data
型: array
ソースを表示
ネストされたスキーマ : TypeField
型: object
FieldInAggrType.
ソースを表示
ネストされたスキーマ : defaultValue
型: object
フィールドのdefaultValue。
ネストされたスキーマ: properties
型: object
使用可能なその他のプロパティ
ソースを表示
フィールド固有のプロパティ。 publishingDependencyフィールドは、メディアおよび参照に固有です。
例:
{caas-translation: {inheritFromMaster: false}, publishingDependency: optional}
ネストされたスキーマ : settings
型: object
使用可能なその他のプロパティ
ソースを表示
フィールド固有の設定。
ネストされたスキーマ: additionalProperties
型: object
ネストされたスキーマ: additionalProperties
型: object
ネストされたスキーマ : ConnectorInfo
型: object
ConnectorInfo
ソースを表示
ネストされたスキーマ: data
型: array
ソースを表示
ネストされたスキーマ : InplacePreview
型: object
InplacePreview
ソースを表示
ネストされたスキーマ: data
型: array
ソースを表示
ネストされたスキーマ : LayoutMapping
型: object
LayoutMapping
ソースを表示
ネストされたスキーマ: formats
型: object
使用可能なその他のプロパティ
ソースを表示
レイアウト形式。
ネストされたスキーマ: additionalProperties
型: object
ネストされたスキーマ : TypeRelationships
型: object
タイプ関連
ソースを表示
ネストされたスキーマ : references
型: array
一意のアイテムが必要: true
参照タイプ名/ID
ソースを表示
ネストされたスキーマ : TypeReferences
型: object
型参照Bean
ソースを表示
ネストされたスキーマ: data
型: array
ソースを表示
ネストされたスキーマ : RequiredTaxonomy
型: object
ソースを表示
ネストされたスキーマ : defaultCategories
型: array
ソースを表示
ネストされたスキーマ : カテゴリ
型: object
ソースを表示

304 レスポンス

変更されていません。

400レスポンス

不正リクエスト

403レスポンス

禁止。

404レスポンス

見つかりません。

500レスポンス

内部サーバー・エラー
トップに戻る

次の例では、cURLを使用してGETリクエストを送信することによってすべてのタイプを取得する方法を示します。

curl -X GET -H 'Accept: application/json' 'https://host:port/content/management/api/v1.1/types/{name}'

例1

これは、name:TypeSampleで型を読み取ります。

/content/management/api/v1.1/types/TypeSample

レスポンス本文

{
        "id": "D103EEB2A5CC42619D7688A62A169092",
        "name": "TypeSample",
        "displayName": "TypeSampleDisplayName",
        "apiName": "typeSample",
        "typeCategory" : "ContentType",
        "allowedFileTypes" : ["ContentItem"],
        "description": "",
        "createdBy": "cecusername",
        "createdDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "updatedBy": "cecusername",
        "updatedDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "fields": [
          {
            "id": "66EA1FD6AE634B1290968AB1C8F606C4",
            "name": "fieldASample",
            "apiName": "fieldASample",
            "description": "Content",
            "datatype": "largetext",
            "required": false,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE2",
            "name": "fieldBSample",
            "apiName": "fieldBSample",
            "description": "Content",
            "datatype": "largetext",
            "required": true,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          }
        ],
        "jobToken":"OPC3630DF06AC04F4EB477A62B0EFB47",
        "properties": {},
        "properties": {
          "caas-translations": {
            "description": {
              "inheritFromMaster": false,
              "note": "",
              "translate": true
            },
            "file": {
              "inheritFromMaster": true,
              "note": "",
              "translate": false
            },
            "name": {
              "inheritFromMaster": false,
              "note": "",
              "translate": true
            },
            "slug": {
              "inheritFromMaster": false,
              "note": "",
              "translate": true
            }
          }
        },
        "roleName": "manager",
        "archivedFields": {
          "links": [
            {
              "href": "http://<hostname>/content/management/api/v1.1/types/TypeSample/archivedFields",
              "rel": "self",
              "method": "GET",
              "mediaType": "application/json"
            }
          ]
        },
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/TypeSample",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/TypeSample",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/types/TypeSample",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }    

例2

これは、archivedFieldsとともにname:TypeSampleという名前のタイプを読み取ります。archivedFieldsは、'all'に置き換えることもできます。

/content/management/api/v1.1/types/TypeSample?expand=archivedFields

レスポンス本文

{
        "id": "D103EEB2A5CC42619D7688A62A169092",
        "name": "TypeSample",
        "apiName": "typeSample",
        "description": "",
        "typeCategory" : "ContentType",
        "allowedFileTypes" : ["ContentItem"],
        "createdBy": "cecusername",
        "createdDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "updatedBy": "cecusername",
        "updatedDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "fields": [
          {
            "id": "66EA1FD6AE634B1290968AB1C8F606C4",
            "name": "fieldASample",
            "apiName": "fieldASample",
            "description": "Content",
            "datatype": "largetext",
            "required": false,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE2",
            "name": "fieldBSample",
            "apiName": "fieldBSample",
            "description": "Content",
            "datatype": "largetext",
            "required": true,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          }
        ],
        "properties": {},
        "roleName": "manager",
        "archivedFields": {
          "data": [
            {
              "id": "2383782175B04C7AB62F25E7A606196E",
              "name": "Test139004168217008",
              "description": "Test139004168251009",
              "datatype": "text",
              "required": false,
              "valuecount": "list",
              "properties": {},
              "settings": {},
              "archivedBy": "cecusername",
              "archivedDate": {
                "value": "2020-05-01T08:33:11.943Z",
                "timezone": "UTC"
              }
            },
            {
              "id": "0502F305EDD74CED87CF7ADA4F07D7F8",
              "name": "Test139004168280000",
              "description": "Test139004168295001",
              "datatype": "largetext",
              "required": false,
              "valuecount": "single",
              "properties": {},
              "settings": {},
              "archivedBy": "cecusername",
              "archivedDate": {
                "value": "2020-05-01T08:33:11.947Z",
                "timezone": "UTC"
              }
            }
          ],
          "links": [
            {
              "href": "http://<hostname>/content/management/api/v1.1/types/TypeSample/archivedFields",
              "rel": "self",
              "method": "GET",
              "mediaType": "application/json"
            }
          ]
        },
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/TypeSample?expand=archivedFields",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/TypeSample?expand=archivedFields",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/types/TypeSample",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }    

例3

これは、name:DigitalTypeSampleのタイプを読み取ります。

/content/management/api/v1.1/types/DigitalTypeSample

レスポンス本文

{
        "id": "D103EEB2A5CC42619D7688A62A169092",
        "name": "TypeSample",
        "typeCategory" : "DigitalAssetType",
        "allowedFileTypes" : ["jpg","jpeg","png"],
        "description": "",
        "createdBy": "cecusername",
        "createdDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "updatedBy": "cecusername",
        "updatedDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "fields": [
          {
            "id": "66EA1FD6AE634B1290968AB1C8F606C4",
            "name": "fieldASample",
            "description": "Content",
            "datatype": "largetext",
            "required": false,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE2",
            "name": "fieldBSample",
            "description": "Content",
            "datatype": "largetext",
            "required": true,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE2",
            "name": "size",
            "description": "size",
            "datatype": "number",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE3",
            "name": "fileType",
            "description": "fileType",
            "datatype": "text",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE9",
            "name": "fileGroup",
            "description": "fileGroup",
            "datatype": "text",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE5",
            "name": "mimeType",
            "description": "mimeType",
            "datatype": "text",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE6",
            "name": "renditions",
            "description": "renditions",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE7",
            "name": "metadata",
            "description": "metadata",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE8",
            "name": "native",
            "description": "native",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DA8",
            "name": "advancedVideoInfo",
            "description": "advancedVideoInfo",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          }
        ],
        "properties": {},
        "roleName": "manager",
        "archivedFields": {
          "links": [
            {
              "href": "http://<hostname>/content/management/api/v1.1/types/DigitalTypeSample/archivedFields",
              "rel": "self",
              "method": "GET",
              "mediaType": "application/json"
            }
          ]
        },
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/DigitalTypeSample",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/DigitalTypeSample",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/types/DigitalTypeSample",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }    

例4

これは、name:DigitalTypeSampleのタイプをarchivedFieldsとともに読み取ります。archivedFieldsは、'all'に置き換えることもできます。

/content/management/api/v1.1/types/DigitalTypeSample

レスポンス本文

{
        "id": "D103EEB2A5CC42619D7688A62A169092",
        "name": "DigitalTypeSample",
        "description": "",
        "typeCategory" : "DigitalAssetType",
        "allowedFileTypes" : ["jpg","jpeg","png"],
        "createdBy": "cecusername",
        "createdDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "updatedBy": "cecusername",
        "updatedDate": {
          "value": "2018-11-23T10:33:17.270Z",
          "timezone": "UTC"
        },
        "fields": [
          {
            "id": "66EA1FD6AE634B1290968AB1C8F606C4",
            "name": "fieldASample",
            "description": "Content",
            "datatype": "largetext",
            "required": false,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE2",
            "name": "fieldBSample",
            "description": "Content",
            "datatype": "largetext",
            "required": true,
            "valuecount": "single",
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE2",
            "name": "size",
            "description": "size",
            "datatype": "number",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE3",
            "name": "fileType",
            "description": "fileType",
            "datatype": "text",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE9",
            "name": "fileGroup",
            "description": "fileGroup",
            "datatype": "text",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE5",
            "name": "mimeType",
            "description": "mimeType",
            "datatype": "text",
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE6",
            "name": "renditions",
            "description": "renditions",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE7",
            "name": "metadata",
            "description": "metadata",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DE8",
            "name": "native",
            "description": "native",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          },
          {
            "id": "B4E2EA0BBD5E4DD38BA721BEA7E02DA8",
            "name": "advancedVideoInfo",
            "description": "advancedVideoInfo",
            "datatype": "json",
            "jsonSchema" : null,
            "required": false,
            "valuecount": "single",
            "isSystemField":true,
            "properties": {},
            "settings": {}
          }
        ],
        "properties": {},
        "roleName": "manager",
        "archivedFields": {
          "data": [
            {
              "id": "2383782175B04C7AB62F25E7A606196E",
              "name": "Test139004168217008",
              "description": "Test139004168251009",
              "datatype": "text",
              "required": false,
              "valuecount": "list",
              "properties": {},
              "settings": {},
              "archivedBy": "cecusername",
              "archivedDate": {
                "value": "2020-05-01T08:33:11.943Z",
                "timezone": "UTC"
              }
            },
            {
              "id": "0502F305EDD74CED87CF7ADA4F07D7F8",
              "name": "Test139004168280000",
              "description": "Test139004168295001",
              "datatype": "largetext",
              "required": false,
              "valuecount": "single",
              "properties": {},
              "settings": {},
              "archivedBy": "cecusername",
              "archivedDate": {
                "value": "2020-05-01T08:33:11.947Z",
                "timezone": "UTC"
              }
            }
          ],
          "links": [
            {
              "href": "http://<hostname>/content/management/api/v1.1/types/DigitalTypeSample/archivedFields",
              "rel": "self",
              "method": "GET",
              "mediaType": "application/json"
            }
          ]
        },
        "links": [
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/DigitalTypeSample?expand=archivedFields",
            "rel": "self",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/types/DigitalTypeSample?expand=archivedFields",
            "rel": "canonical",
            "method": "GET",
            "mediaType": "application/json"
          },
          {
            "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/types/DigitalTypeSample",
            "rel": "describedby",
            "method": "GET",
            "mediaType": "application/schema+json"
          }
        ]
      }
    }
  ]
}  
先頭に戻る