Files
2024-02-15 17:01:50 +00:00

76 lines
1.8 KiB
JSON

{
"get": {
"tags": ["Projects"],
"description": "Return a list of users seen within this project.",
"operationId": "List a Project's Users",
"parameters": [
{
"name": "organization_slug",
"in": "path",
"description": "The slug of the organization.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "project_slug",
"in": "path",
"description": "The slug of the project.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "query",
"in": "query",
"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:[email protected]`",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Success",
"content": {
"application/json": {
"schema": {
"type": "array",
"items": {
"type": "object",
"required": ["username", "email"],
"properties": {
"username": {
"type": "string",
"nullable": true
},
"email": {
"type": "string",
"nullable": true
}
}
}
},
"example": [
{
"username": "sentry",
"email": "[email protected]"
}
]
}
}
},
"403": {
"description": "Forbidden"
}
},
"security": [
{
"auth_token": ["project:read"]
}
]
}
}