users.json 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. {
  2. "get": {
  3. "tags": ["Projects"],
  4. "description": "Return a list of users seen within this project.",
  5. "operationId": "List a Project's Users",
  6. "parameters": [
  7. {
  8. "name": "organization_slug",
  9. "in": "path",
  10. "description": "The slug of the organization.",
  11. "required": true,
  12. "schema": {
  13. "type": "string"
  14. }
  15. },
  16. {
  17. "name": "project_slug",
  18. "in": "path",
  19. "description": "The slug of the project.",
  20. "required": true,
  21. "schema": {
  22. "type": "string"
  23. }
  24. },
  25. {
  26. "name": "query",
  27. "in": "query",
  28. "description": "Limit results to users matching the given query. Prefixes should be used to suggest the field to match on: `id`, `email`, `username`, `ip`. For example, `query=email:foo@example.com`",
  29. "schema": {
  30. "type": "string"
  31. }
  32. }
  33. ],
  34. "responses": {
  35. "200": {
  36. "description": "Success",
  37. "content": {
  38. "application/json": {
  39. "schema": {
  40. "type": "array",
  41. "items": {
  42. "type": "object",
  43. "required": ["dateCreated", "id", "username", "email"],
  44. "properties": {
  45. "dateCreated": {
  46. "type": "string"
  47. },
  48. "id": {
  49. "type": "string"
  50. },
  51. "username": {
  52. "type": "string",
  53. "nullable": true
  54. },
  55. "email": {
  56. "type": "string",
  57. "nullable": true
  58. }
  59. }
  60. }
  61. },
  62. "example": [
  63. {
  64. "dateCreated": "2020-07-16T00:50:40.342174Z",
  65. "id": "21077833046",
  66. "username": "sentry",
  67. "email": "sentry@example.com"
  68. }
  69. ]
  70. }
  71. }
  72. },
  73. "403": {
  74. "description": "Forbidden"
  75. }
  76. },
  77. "security": [
  78. {
  79. "auth_token": ["project:read"]
  80. }
  81. ]
  82. }
  83. }