Skip to content

PUT method in CustomResquest class #185

@carlosgdz

Description

@carlosgdz

Hi,

I'm trying to use CustomRequest to create a team from an already existing group (an education class, really), as there is still no teams implementation in the SDK.

The problem is that the CustomRequest class does not provide a put method. And setting the httpMethod in the GraphClient is useless, as far as I'm concerned.

I have modified the CustomRequest class including the put method, and it works fine, but it would be great if it where included in the project.

Expected behavior

CustomRequest teamRequest = graphClient.customRequest("/groups/" + educationClass.id + "/team").buildRequest();
JsonObject jsonRequestBody...
JsonObject result = teamRequest.put(jsonRequestBody);

Actual behavior

CustomRequest teamRequest = graphClient.customRequest("/groups/" + educationClass.id + "/team").buildRequest();
JsonObject jsonRequestBody...
JsonObject result = teamRequest.???(jsonRequestBody); --> No PUT method available

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions