Unable to add fields to Hosted feature Service using REST call

739
3
04-16-2018 11:56 AM
SreedharBalerao
New Contributor

am new developer to ESRI AGOL,

I am able to

1) Upload ShapeFile

2) Publish ShapeFile as a HostedService

Now I need to add few extra fields to the featureService layer.

I tried to post fields collection to

/addToDefinition end point,

response is Success, but when I check the featureService layer in AGOL portal, I do not see the newly added fields

Any suggestions please

0 Kudos
3 Replies
SreedharBalerao
New Contributor

Any Suggestions please? Bumping it

0 Kudos
SzymonPiskula1
New Contributor III

Perhaps you got the syntax of /addToDefinition wrong and the field should be somehow differently nested in your JSON payload? Different array/attribute name. Deeper in the payload tree etc?

0 Kudos
SarahScott3
Esri Contributor

Can you tell me a little bit more about your workflow? 

What does the JSON you're using in the addToDefinition look like?

0 Kudos