Could you tell me where can I find the specification about Catalog Admins?
I'm currently trying to control catalog item with Unity editor. I was able to use CreateDraftItem
, GetDraftItems
, UpdateDraftItem
, and PublishDraftItem
with title entity.
If I can use catalog admin account to call those API from Unity editor, that will be nice since I can remove ENABLE_PLAYFABADMIN_API
but some API seems not allow to use. Is this behavior intended? And I want to know how we can use catalog admins. Thank you.
I'll put some result of my test I did below.
Update catalog config like below
"Config": {
"IsCatalogEnabled": true,
"AdminEntities": [
{
"Id": "182ED25117AB1C30",
"Type": "title_player_account",
"TypeString": "title_player_account"
}
],
"Catalog": {
"ContentTypes": [
],
"Tags": []
},
"DeepLinkFormats": [],
"DisplayPropertyIndexInfos": [
{
"Name": "Priority",
"Type": "QueryDouble"
}
],
"ReviewerEntities": [],
"UserGeneratedContent": {
"ContentTypes": [],
"Tags": []
},
"File": {
"ContentTypes": [],
"Tags": []
},
"Image": {
"Tags": []
},
"Platforms": [
"Oculus"
]
}
Then If I tried to call GetDraftItem
with assigned admin account with below request,
{
"Id": "3fb6a078-cd26-4a19-b9fe-b4ff84bcdf50"
}
I got below error
{
"code": 401,
"status": "Unauthorized",
"error": "NotAuthorized",
"errorCode": 1089,
"errorMessage": "Calling Entity does not have permissions to the Item Type."
}
But if I use GetDraftItems
with assigned admin,
{
"Ids": [
"3fb6a078-cd26-4a19-b9fe-b4ff84bcdf50"
]
}
I can retrieve item.
{
"code": 200,
"status": "OK",
"data": {
"Items": [
{
"Id": "3fb6a078-cd26-4a19-b9fe-b4ff84bcdf50",
"Type": "catalogItem",
"AlternateIds": [
{
"Type": "FriendlyId",
"Value": "ScheduleTest1"
}
],
"Title": {
"NEUTRAL": "ScheduleTest1"
},
"Description": {
"NEUTRAL": "This item is for testing scheduling system"
},
"Keywords": {},
"CreatorEntity": {
"Id": "87ADE",
"Type": "title",
"TypeString": "title"
},
"IsHidden": true,
"Platforms": [],
"Tags": [],
"CreationDate": "2024-01-29T10:13:15.268Z",
"LastModifiedDate": "2024-01-29T10:13:15.268Z",
"StartDate": "2024-01-01T00:00:00Z",
"Contents": [],
"Images": [],
"ItemReferences": [],
"PriceOptions": {
"Prices": [
{
"UnitAmount": 1,
"Amounts": [
{
"ItemId": "f7495a45-aade-41e5-8d35-0f4bfbe30a50",
"Amount": 1000
}
]
}
]
},
"DeepLinks": [],
"DisplayProperties": {},
"ETag": "\"c6032921-0000-0800-0000-65b77a3b0000\""
}
]
}
}