메타데이터 메커니즘 metadata-mechanism

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

GET /profileAndServices/resourceType/<resourceName>

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

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

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

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

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

    • "category": 쿼리 편집기에 있는 필드의 범주를 제공합니다.

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

      type이 "link" 또는 "collection" 값으로 완료된 경우 resTarget 값은 링크가 타깃팅한 리소스의 이름입니다.
      "type"이 "enumeration" 값으로 완료되면 "values" 필드가 추가되고 각 열거형 값이 노드.

  • 다음 필터 node는 연결된 필터를 검색할 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"
}
recommendation-more-help
3ef63344-7f3d-48f9-85ed-02bf569c4fff