put.json 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. {
  2. "operationId": "updateUserPermissions",
  3. "summary": "Update a User's Permissions",
  4. "tags": ["users"],
  5. "security": [
  6. {
  7. "bearerAuth": ["admin"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "path",
  13. "name": "userID",
  14. "schema": {
  15. "type": "integer",
  16. "minimum": 1
  17. },
  18. "required": true,
  19. "description": "User ID",
  20. "example": 2
  21. }
  22. ],
  23. "requestBody": {
  24. "description": "Permissions Payload",
  25. "required": true,
  26. "content": {
  27. "application/json": {
  28. "schema": {
  29. "$ref": "../../../../components/permission-object.json"
  30. },
  31. "example": {
  32. "visibility": "all",
  33. "access_lists": "view",
  34. "certificates": "hidden",
  35. "dead_hosts": "hidden",
  36. "proxy_hosts": "manage",
  37. "redirection_hosts": "hidden",
  38. "streams": "hidden"
  39. }
  40. }
  41. }
  42. },
  43. "responses": {
  44. "200": {
  45. "description": "200 response",
  46. "content": {
  47. "application/json": {
  48. "examples": {
  49. "default": {
  50. "value": true
  51. }
  52. },
  53. "schema": {
  54. "type": "boolean"
  55. }
  56. }
  57. }
  58. }
  59. }
  60. }