Skip to content

GET request returns 201 Created instead of 200 OK for identity/conditionalAccess/authenticationContextClassReferences/{id} #977

@ms-henglu

Description

@ms-henglu

When performing a GET request on a newly created authenticationContextClassReference, the API returns a 201 Created status code. According to HTTP standards and OData conventions, a GET request should return 200 OK.

Reproduction Steps

  1. Create an authenticationContextClassReference (e.g., via PATCH or POST).
  2. Perform a GET request on the created resource URL: https://graph.microsoft.com/v1.0/identity/conditionalAccess/authenticationContextClassReferences/{id}.

Expected Behavior

Status code 200 OK.

Actual Behavior

Status code 201 Created.

Impact

Client libraries (like the Terraform provider) that expect standard HTTP status codes fail to read the resource, interpreting 201 as an unexpected response for a read operation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions