I create a custom field using the REST API :
POST https://{site_url}/_api/web/lists(guid'{list_guid}')/Fields
{
"__metadata": {
"type": "SP.Field"
},
"Title": "field title",
"FieldTypeKind": 2,
"Required": "true",
"EnforceUniqueValues": "true",
"StaticName": "field name"
}
Custom field created doesn't appear on the UI. It is hidden. To make it appear on the UI, we need to do the following:
Add column -> Show/ Hide columns -> Select the checkbox of the "field title" -> Apply
After doing these steps, I can see the newly created field/column on the UI
Shouldn't it automatically appear on the UI? Also if not, which REST API should I use to make it unhidden? Or which property should I change to make it unhidden via REST API
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
Thank you for reporting this issue. We will be triaging your incoming issue as soon as possible.
Hi viveksk6,
You need to add it to a view to display it. Here is the API reference:

Test :
1, Create a field

2, Add to a view (by default it's All Items)

Result:


Baker Kong
Microsoft SharePoint Community Support
Closing this issue as "answered". If you encounter a similar issue(s), please open up a new issue. See our wiki for more details: Issue-List: Our approach to closed issues
Most helpful comment
Hi viveksk6,
You need to add it to a view to display it. Here is the API reference:
Test :
1, Create a field


2, Add to a view (by default it's All Items)
Result:


Baker Kong
Microsoft SharePoint Community Support