Error when adding new field in profile creation by API | Community
Skip to main content
Level 3
September 16, 2024
Question

Error when adding new field in profile creation by API

  • September 16, 2024
  • 3 replies
  • 793 views

Hello everyone,

 

In the "Profile" resource we have created the extended resource and created new fields. We are also creating profiles through API calling this endpoint https://mc.adobe.io/company/campaign/profileAndServicesExt/profile/.

 

This is working correctly but we have added a new field to the profile extended resource and we have added the same field to the API and we are getting the following error 'NewField' property is not valid for the 'profile' resource.

 

It looks like it is not identifying the new field in the API schema? Does anything else have to be done apart from creating it in the resource?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

SatheeskannaK
Community Advisor
Community Advisor
September 18, 2024

@lar1985 Can you check whether the added field showing on the API response when you make a GET call?

https://experienceleague.adobe.com/en/docs/campaign-standard/using/developing/use-case-extending-the-api/step-3-verify-the-extension

Thanks, Sathees
Sukrity_Wadhwa
Community Manager
Community Manager
October 16, 2024

Hi @lar1985,

Was the given solution helpful to resolve your query or do you still need more help here? Do let us know.

Thanks!

Sukrity Wadhwa
somasundaram_h
Community Advisor
Community Advisor
November 7, 2024

Sometimes regenerating the schema/resources will be helpful in this scenario.