Skip to content

Fix API in document #1602

Open
Open
@yuvraj9

Description

@yuvraj9

Code of Conduct

What article on docs.github.com is affected?

https://docs.github.com/en/rest/branches/branch-protection#remove-status-check-contexts

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

The API in document has wrong content sent. It should directly include list rather than adding it under context.

This is regarding API for - Remove status check contexts

The api body parameters need to be fixed. It should not have an. contexts subpart.

So
-d '{"contexts":["continuous-integration/travis-ci"]}' should be -d '["continuous-integration/travis-ci"]'

I have tested it and it only works with this.

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions