Skip to content

Commit

Permalink
docs(api): Change to better and shorter name on docs page
Browse files Browse the repository at this point in the history
  • Loading branch information
schew2381 committed Jun 27, 2023
1 parent 7f906d9 commit d3a120f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/sentry/api/endpoints/organization_member/team_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def get(
)

@extend_schema(
operation_id="Join, Request Access to, or Add a Member to a Team",
operation_id="Add a Member to a Team",
parameters=[
GlobalParams.ORG_SLUG,
GlobalParams.member_id("The ID of the organization member to add to the team"),
Expand All @@ -172,13 +172,11 @@ def post(
team_slug: str,
) -> Response:
"""
Join, request access to or add a member to a team.
If the member needs permission to join the team, an access request will be generated and the returned status code will be 202.
If the user needs permission to join the team, an access request will be generated and the returned status code will be 202.
If the member is already on the team, this will return a 204.
If the user is already a member of the team, this will return a 204.
If the team is provisioned through an identity provider, then the user cannot join or request to join the team through Sentry.
If the team is provisioned through an identity provider, then the member cannot join the team through Sentry.
"""
if not request.user.is_authenticated:
return Response(status=status.HTTP_401_UNAUTHORIZED)
Expand Down

0 comments on commit d3a120f

Please sign in to comment.