메타데이터 메커니즘

를 사용하여 리소스 메타데이터를 검색할 수 있습니다 resourceType GET 요청에서:

GET /profileAndServices/resourceType/<resourceName>

응답은 리소스의 기본 메타데이터를 반환합니다(다른 모든 필드는 설명적이거나 내적입니다.).

  • 다음 컨텐츠 노드는 리소스의 필드를 반환합니다. 의 각 필드에 대해 콘텐츠 노드, 다음 필드를 찾을 수 있습니다.

    • "apiName": api에 사용되는 속성의 이름입니다.

    • "type": 높은 수준의 형식 정의(문자열, 숫자, 링크, 컬렉션, 열거형…)입니다.

    • "dataPolicy": 필드의 값은 주어진 정책 규칙을 따라야 합니다. 예를 들어 dataPolicy 규칙이 "email"로 설정되어 있으면 값이 유효한 이메일이어야 합니다. PATCH 또는 POST 중에 dataPolicy는 값을 확인하거나 변환할 값을 수정할 수 있습니다(예: smartCase).

    • "category": 쿼리 편집기에서 필드의 카테고리를 제공합니다.

    • "resType": 기술 유형입니다.

      type이 "link" 또는 "collection" 값으로 완료되면 resTarget 값은 링크의 타겟팅된 리소스의 이름입니다.
      "type"이 "enumeration" 값으로 완료되면 "values" 필드가 추가되고 각 열거형 값은 노드 아래에 있어야 합니다.

  • 다음 필터 노드는 연결된 필터를 검색할 URL을 반환합니다. 필터에 대한 자세한 내용은 이 섹션 섹션을 참조하십시오.


샘플 요청

리소스에 대해 GET 요청을 수행합니다.

-X GET https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/resourceType/profile \
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer <ACCESS_TOKEN>' \
-H 'Cache-Control: no-cache' \
-H 'X-Api-Key: <API_KEY>'

프로필 리소스에 대한 전체 설명을 반환합니다.

{
...
"content": {
  "email": {...},
    ...
    },
"data": "/profileAndServices/profile/",
"filters": {
        "href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/resourceType/<PKEY>"
    },
"help": "Identified profiles",
"href": "https://mc.adobe.io/<ORGANIZATION>/campaign/profileAndServices/profile/metadata",
"label": "Profiles",
"mandatory": false,
"name": "profile",
"pkgStatus": "never",
"readOnly": false,
"schema": "nms:recipient",
"type": "item"
}

이 페이지에서는