Skip to content

Typo in docs for Enterprise Server 3.8- Check organization membership for a user  #27266

@natashamm

Description

@natashamm

Code of Conduct

What article on docs.github.com is affected?

Under Check organization membership for a user for Enterprise server 3.8 - the status code I get when using the API is different from the docs.

According to the docs you would expect a 302 status code if requester is not an organization member

docs

However, when making a get request /orgs/{org}/members/{username} (where org is an organization I am not a member of and username is that of a user in the organization), I get a 404 status code, along with the message User does not exist or is not a member of the organization - which leads me to believe that the 404 status code is the expected one.

What part(s) of the article would you like to see updated?

Update the HTTP response status codes for "Check organization membership for a user" in the docs.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    contentThis issue or pull request belongs to the Docs Content teamrestContent related to rest - overview.waiting for reviewIssue/PR is waiting for a writer's review

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions