In your LUIS application, you would want to add authors and contributors.
While you have the option to add these users through the Azure Portal, you intend to achieve this objective using the REST calls.
This capability would eventually be utilized in the user self-service catalog of your enterprise.
Review the answer choices given below and choose the REST call that you will use to replace the current user access list with the new list.
Click on the arrows to vote for the correct answer
A. B. C. D.Correct Answer: A.
Option A is correct because the PUT command is used to replace the current user list with a new user list.
Endpoint here is to be replaced with the Cognitive Services resource endpoint and the list of users containing their email ids.
Option B is incorrect because the GET command is used for getting the list of user emails.
These users have the permission to access the LUIS application.
Option C is incorrect because the POST command is used to add a user to the allowed list of users.
However, the requirement here is to replace the list of users with a new one and hence requires an update command.
Option D is incorrect because the DELETE command is used to delete a user from the allowed list of users.
Reference:
To learn more about updating LUIS application permissions, use the link given below:
The correct REST call to replace the current user access list with a new list in a LUIS application is A. PUT {Endpoint}/luis/api/v2.0/apps/{appId}/permissions.
Explanation: LUIS (Language Understanding Intelligent Service) is a cloud-based service that allows developers to build natural language processing into their applications. LUIS provides a REST API that developers can use to manage LUIS applications programmatically.
To add authors and contributors to a LUIS application, we need to use the LUIS REST API. The REST call that we need to use to replace the current user access list with a new list is the PUT method. The endpoint for the LUIS API is {Endpoint}/luis/api/v2.0/apps/{appId}/permissions, where {Endpoint} is the URL for the LUIS service, and {appId} is the unique identifier for the LUIS application.
The PUT method is used to update an existing resource, and in this case, we want to update the permissions for the LUIS application. The PUT method requires us to provide the entire new list of users, including the authors and contributors, in the request body. The request body should be a JSON object that includes the email addresses of the new users and their roles (e.g., "Owner", "Contributor", "Reader").
In contrast, the GET method is used to retrieve information about a resource, the POST method is used to create a new resource, and the DELETE method is used to delete an existing resource. Therefore, the correct answer is A. PUT {Endpoint}/luis/api/v2.0/apps/{appId}/permissions.