post.json 983 B

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