NetAppDocs / ontap-restapi

https://docs.netapp.com/us-en/ontap-restapi/
0 stars 0 forks source link

The request body should not include name and svm #5

Open chuyich opened 9 months ago

chuyich commented 9 months ago

Page URL

https://docs.netapp.com/us-en/ontap-restapi/ontap/patch-protocols-cifs-users-and-groups-privileges-.html

Page title

Update privileges for a local, or Active Directory user or group and SVM

Summary

Based on the test with postman, I found the Request Body for the privilege update should not include name and svm. Otherwise, the API responses:

{
  "error": {
    "message": "Field \"name\" is not supported in the body of a PATCH.",
    "code": "262203",
    "target": "name"
  }
}

Please check with BlueXP dev team and fix the document.

Public issues must not contain sensitive information

netapp-pcarriga commented 9 months ago

Thank you, @chuyich, for taking time to bring this to our attention.

dmp-netapp commented 9 months ago

@chuyich Thanks for your feedback. Two questions. 1.) Why do you mention checking with the BlueXP dev team? 2.) Can you please send an example of the JSON input you are using (with user and svm) to get the failure?

chuyich commented 9 months ago

I'm the user of these APIs. I followed this page to work on the automation. The BlueXP development team should know if the API behavior is proper or not.

Here is an example. API URL: {{cluster4}}/api/protocols/cifs/users-and-groups/privileges/<SVM ID>/test3 { "privileges":["SeSecurityPrivilege", "SeTcbPrivilege"], "name": "test3" } I got { "error": { "message": "Field \"name\" is not supported in the body of a PATCH.", "code": "262203", "target": "name" } }

It seems only the part needs to be changed can be in the request body.

dmp-netapp commented 8 months ago

Tracking in AUTODOC-146.