sentry-app-external-issues.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. {
  2. "post": {
  3. "tags": ["Integration"],
  4. "description": "Create an external issue from an integration platform integration.",
  5. "operationId": "Create an External Issue",
  6. "parameters": [
  7. {
  8. "name": "uuid",
  9. "in": "path",
  10. "description": "The uuid of the integration platform integration.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. }
  16. ],
  17. "requestBody": {
  18. "content": {
  19. "application/json": {
  20. "schema": {
  21. "required": ["issueId", "webUrl", "project", "identifier"],
  22. "type": "object",
  23. "properties": {
  24. "issueId": {
  25. "type": "integer",
  26. "description": "The ID of the Sentry issue to link the external issue to."
  27. },
  28. "webUrl": {
  29. "type": "string",
  30. "description": "The URL of the external service to link the issue to."
  31. },
  32. "project": {
  33. "type": "string",
  34. "description": "The external service's project."
  35. },
  36. "identifier": {
  37. "type": "string",
  38. "description": "A unique identifier of the external issue."
  39. }
  40. }
  41. },
  42. "example": {
  43. "issueId": 1,
  44. "webUrl": "https://somerandom.io/project/issue-id",
  45. "project": "ExternalProj",
  46. "identifier": "issue-1"
  47. }
  48. }
  49. },
  50. "required": true
  51. },
  52. "responses": {
  53. "200": {
  54. "description": "Success",
  55. "content": {
  56. "application/json": {
  57. "schema": {
  58. "type": "object",
  59. "required": ["id", "issueId", "serviceType", "displayName", "webUrl"],
  60. "properties": {
  61. "id": {
  62. "type": "string"
  63. },
  64. "issueId": {
  65. "type": "string"
  66. },
  67. "serviceType": {
  68. "type": "string"
  69. },
  70. "displayName": {
  71. "type": "string"
  72. },
  73. "webUrl": {
  74. "type": "string"
  75. }
  76. }
  77. },
  78. "example": {
  79. "id": "1",
  80. "issueId": "1",
  81. "serviceType": "testing",
  82. "displayName": "ExternalProj#issue-1",
  83. "webUrl": "https://somerandom.io/project/issue-id"
  84. }
  85. }
  86. }
  87. },
  88. "403": {
  89. "description": "Forbidden"
  90. },
  91. "404": {
  92. "description": "Not Found"
  93. }
  94. },
  95. "security": [
  96. {
  97. "auth_token": ["event:write"]
  98. }
  99. ]
  100. }
  101. }