post.json 930 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. {
  2. "operationId": "disableProxyHost",
  3. "summary": "Disable a Proxy Host",
  4. "tags": ["Proxy Hosts"],
  5. "security": [
  6. {
  7. "BearerAuth": ["proxy_hosts"]
  8. }
  9. ],
  10. "parameters": [
  11. {
  12. "in": "path",
  13. "name": "hostID",
  14. "schema": {
  15. "type": "integer",
  16. "minimum": 1
  17. },
  18. "required": true,
  19. "example": 2
  20. }
  21. ],
  22. "responses": {
  23. "200": {
  24. "description": "200 response",
  25. "content": {
  26. "application/json": {
  27. "examples": {
  28. "default": {
  29. "value": true
  30. }
  31. },
  32. "schema": {
  33. "type": "boolean"
  34. }
  35. }
  36. }
  37. },
  38. "400": {
  39. "description": "400 response",
  40. "content": {
  41. "application/json": {
  42. "examples": {
  43. "default": {
  44. "value": {
  45. "error": {
  46. "code": 400,
  47. "message": "Host is already disabled"
  48. }
  49. }
  50. }
  51. },
  52. "schema": {
  53. "$ref": "../../../../../components/error.json"
  54. }
  55. }
  56. }
  57. }
  58. }
  59. }