In the SAS Viya REST API, there's no direct equivalent to the selectedfields parameter found in the PI Web API. However, you can control the amount of data returned in a few different ways: Pagination You can use the start and limit parameters to control which subset of results you receive. For example https://tvnama.com/ This request retrieves the first 10 members from the specified folder. Filtering and Querying Some endpoints allow you to use query parameters to filter results. For instance, you can use filter to retrieve specific items based on certain criteria. Using Specific API Endpoints Certain API endpoints might have specific query parameters that limit or control the data returned. Check the documentation for each endpoint to see if it supports filtering or selecting specific fields. Customizing Data Retrieval If you need specific fields or a more customized response, you might have to retrieve the data in a broader query and then process or filter the data client-side, i.e., in your application or script. For example: Retrieve the full data set. Parse the response and extract only the fields you need. To get a limited number of members, use: bash After retrieving the response, you would manually extract the fields name and id from each item in the response payload. Practical Tips Check the API Documentation: For each endpoint you use, refer to the SAS Viya REST API documentation to see available parameters and capabilities. Client-side Processing: Sometimes, it’s more efficient to handle field selection and filtering in your application after receiving the data. Example Workflow Here's a simplified example workflow for handling the API response if you can't limit fields directly: Make API Call: Process Response: Extract and format the required fields from the JSON response in your application code. If SAS introduces new API features or if there are updates to the documentation, it would be worthwhile to revisit the documentation or reach out to SAS support for any advanced features or newer capabilities.
... View more