GET 요청에서 resourceType을(를) 사용하여 리소스 메타데이터를 검색할 수 있습니다.
GET /profileAndServices/resourceType/<resourceName>
응답은 리소스에서 기본 메타데이터를 반환합니다(다른 모든 필드는 설명적이거나 내부적입니다).
Content 노드는 리소스의 필드를 반환합니다. content 노드의 각 필드에 대해 다음 필드를 찾을 수 있습니다.
"apiName":API에 사용되는 속성의 이름입니다.
"type":높은 수준의 형식 정의입니다(문자열, 숫자, 링크, 컬렉션, 열거형…).
"dataPolicy":필드의 값은 주어진 정책 규칙을 따라야 합니다. 예를 들어 dataPolicy 규칙이 "email"로 설정된 경우 값은 유효한 이메일이어야 합니다. PATCH 또는 POST 중에 dataPolicy는 값을 확인하거나 변형할 값을 수정할 수 있습니다(예: smartCase).
"카테고리":는 쿼리 편집기에서 필드의 범주를 지정합니다.
"resType":이 기술 유형은 다음과 같습니다.
"type"이 "link" 또는 "collection" 값으로 완료되면 resTarget 값은 링크가 타깃팅한 리소스의 이름입니다.
"type"이 "enumeration" 값으로 완료되면 "values" 필드가 추가되고 각 열거형 값은 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"
}