put.json 814 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. {
  2. "operationId": "updateUserPermissions",
  3. "summary": "Update a User's Permissions",
  4. "tags": ["Users"],
  5. "security": [
  6. {
  7. "BearerAuth": ["users"]
  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. }
  32. }
  33. },
  34. "responses": {
  35. "200": {
  36. "description": "200 response",
  37. "content": {
  38. "application/json": {
  39. "examples": {
  40. "default": {
  41. "value": true
  42. }
  43. },
  44. "schema": {
  45. "type": "boolean"
  46. }
  47. }
  48. }
  49. }
  50. }
  51. }