Expand my Community achievements bar.

SOLVED

I am able to update multiple same field groups via API

Avatar

Level 5

Hi Team,

 

I am able to update duplicate field groups via below API

https://platform.adobe.io/data/foundation/schemaregistry/tenant/schemas/:SCHEMA_ID

 

It seems this is defect - we unable to add same field groups via UI 

 

Regards

Indra

 

 

 

 

 

1 Accepted Solution

Avatar

Correct answer by
Level 5

SCHEMA ID :_adobequaptrsd.schemas.7567f6029e5ee4a77faf20dea2718677d7448af37a7XXXXXX

Successfully updated.

Request:

[{
"op": "add",
"path": "/allOf/-",
"value": {
}
},
{
"op": "add",
"path": "/allOf/-",
"value": {
}
}
]
 
Response:
{
"meta:altId": "_adobequaptrsd.schemas.7567f6029e5ee4a77faf20dea2718677d7448af3XXXXX",
"meta:resourceType": "schemas",
"version": "1.1",
"title": "Indra Luma CRM Schema Indra",
"type": "object",
"description": "Schema for CRM data of Luma Retail ",
"allOf": [
{
"type": "object",
"meta:xdmType": "object"
},
{
"type": "object",
"meta:xdmType": "object"
},
{
"type": "object",
"meta:xdmType": "object"
}
],
"refs": [
],
"imsOrg": "0XXXXXXXC40A495CD7@AdobeOrg",
"additionalInfo": {
"numberOfIdentities": 0,
"numberOfRelationShips": 0,
"classTitle": "XDM Individual Profile",
"behavior": "Record",
"hasRelationShip": false,
"profileEnabled": false
},
"meta:extensible": false,
"meta:abstract": false,
"meta:extends": [
],
"meta:xdmType": "object",
"meta:registryMetadata": {
"repo:createdDate": 1720495111007,
"repo:lastModifiedDate": 1720573766960,
"xdm:createdClientId": "ccfff59b397c4a40a86caa9158a47cca",
"xdm:lastModifiedClientId": "ccfff59b397cXXXXXXXXX",
"xdm:createdUserId": "4FFF1E40664AA86F0A495FC8@techacct.adobe.com",
"xdm:lastModifiedUserId": "4FFF1E40664AA86F0A495FC8@techacct.adobe.com",
"eTag": "057df4d51fe35671b750d21f2620d7c930d2240b349226392e6d7a63923b25b1",
"meta:globalLibVersion": "1.50.1"
},
"meta:containerId": "17429b70-10d5-41bb-829b-7010d5e1bbe0",
"meta:sandboxId": "17429b70-10d5-41bb-829b-7010d5e1bbe0",
"meta:sandboxType": "development",
"meta:tenantNamespace": "_adobequXXXX",
"meta:descriptorStatus": {
"result": []
}
}

View solution in original post

9 Replies

Avatar

Community Advisor

Hello @Indra 

could you provide a little more context on what the expected outcome you are looking for here? Why are you wanting duplicate field groups in the schema?

 

David

Avatar

Level 5

 api should not allow us to add duplicate field groups . But when I hit the api in postman two times, I see the duplicates field group added in UI . second time it should give me error.

 

 

Avatar

Community Advisor

@Indra ok I understand now. It should be erroring out due to same field group id, name, etc. One thing I notice is that you are using an OOTB field group, to which i’m not entirely sure if that could be of any reason why. It may be worth logging a ticket with Adobe support referencing your sandbox and the specific issue. 

@brekrut 

Avatar

Employee

Hello @Indra 

 

I have reviewed the case you have provided.  It appears you have performed a patch command with the operation of add twice into a schema.  Your patch operation of add was to add in the XDM reference of profile-person-details.

 

Can you please provide the results of the full schema view of the schema created using the header value of accept:application/vnd.adobe.xed-full+json; version=1.

 

I would like to see how the objects have been created.

Avatar

Correct answer by
Level 5

SCHEMA ID :_adobequaptrsd.schemas.7567f6029e5ee4a77faf20dea2718677d7448af37a7XXXXXX

Successfully updated.

Request:

[{
"op": "add",
"path": "/allOf/-",
"value": {
}
},
{
"op": "add",
"path": "/allOf/-",
"value": {
}
}
]
 
Response:
{
"meta:altId": "_adobequaptrsd.schemas.7567f6029e5ee4a77faf20dea2718677d7448af3XXXXX",
"meta:resourceType": "schemas",
"version": "1.1",
"title": "Indra Luma CRM Schema Indra",
"type": "object",
"description": "Schema for CRM data of Luma Retail ",
"allOf": [
{
"type": "object",
"meta:xdmType": "object"
},
{
"type": "object",
"meta:xdmType": "object"
},
{
"type": "object",
"meta:xdmType": "object"
}
],
"refs": [
],
"imsOrg": "0XXXXXXXC40A495CD7@AdobeOrg",
"additionalInfo": {
"numberOfIdentities": 0,
"numberOfRelationShips": 0,
"classTitle": "XDM Individual Profile",
"behavior": "Record",
"hasRelationShip": false,
"profileEnabled": false
},
"meta:extensible": false,
"meta:abstract": false,
"meta:extends": [
],
"meta:xdmType": "object",
"meta:registryMetadata": {
"repo:createdDate": 1720495111007,
"repo:lastModifiedDate": 1720573766960,
"xdm:createdClientId": "ccfff59b397c4a40a86caa9158a47cca",
"xdm:lastModifiedClientId": "ccfff59b397cXXXXXXXXX",
"xdm:createdUserId": "4FFF1E40664AA86F0A495FC8@techacct.adobe.com",
"xdm:lastModifiedUserId": "4FFF1E40664AA86F0A495FC8@techacct.adobe.com",
"eTag": "057df4d51fe35671b750d21f2620d7c930d2240b349226392e6d7a63923b25b1",
"meta:globalLibVersion": "1.50.1"
},
"meta:containerId": "17429b70-10d5-41bb-829b-7010d5e1bbe0",
"meta:sandboxId": "17429b70-10d5-41bb-829b-7010d5e1bbe0",
"meta:sandboxType": "development",
"meta:tenantNamespace": "_adobequXXXX",
"meta:descriptorStatus": {
"result": []
}
}

Avatar

Employee

Thank you for your reply.  

I can see in your response there is a reference to the same mixin/field group twice in the same schema.  I can look into this being an enhancement request, but the same field group could be used in multiple location within a single schema.  

 

I would advise when creating schemas via an API to ensure your references are used as expected and double check them using the UI before marking them for profile.

Avatar

Administrator

@Indra Did you find the suggestion helpful? Please let us know if you require more information. Otherwise, please mark the answer as correct for posterity. If you've discovered a solution yourself, we would appreciate it if you could share it with the community. Thank you!



Kautuk Sahni