- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
How to Pull Non-Base Fields via REST API Get Method?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 08:03 AM
I am currently using the following API call to pull the base fields and it works fine but when I try to add fields created manually, API unable to recognize the fields.I tried using the "_return_fields+" but not sure how to fit it in the below URL. Appreciate any insight.
https://dhcp.mycompany.net/wapi/v2.3.1/network?_max_results=10&_return_fields=network,comment
Solved! Go to Solution.
Re: How to Pull Non-Base Fields via REST API Get Method?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 09:39 AM
The "+" needs to be encoded as %2b. For example:
https://dhcp.mycompany.net/wapi/v2.3.1/network?_max_results=10&_return_fields%2b=network,comment
Re: How to Pull Non-Base Fields via REST API Get Method?
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 05:36 PM - edited 10-10-2023 05:47 PM
All custom fields can be retrieved using 'extattrs' attribute.