Has anybody had any success getting this to work in a Portal 10.6 environment? I've got a simple hosted feature service layer for which I want to add an extra value into the domain on one of the fields. I've used the second method above to get the json for the part I want to update and have posted via the update definition page for the layer. I get a message back saying success is true but the change doesn't seem to have come through to the layer itself.
My JSON update is simply adding an extra year (2020) to the domain:
{
{
"fields": [
{
"name": "audit_year",
"alias": "AUDIT_YEAR",
"domain": {
"type": "codedValue",
"name": "Year2",
"description": "Year",
"codedValues": [
{
"name": "2017",
"code": 2017
},
{
"name": "2018",
"code": 2018
},
{
"name": "2019",
"code": 2019
},
{
"name": "2020",
"code": 2020
}
]
}
}
]
}
}
I'd prefer not to go back and have to republish my service if at all possible. Would be good to see this functionality added to the standard user interface in Portal as is now available in AGOL.
Thanks
Gareth