Skip to content

Manual Request Doesn't Allow For All Methods #12

Open
@nlovelace

Description

Attempting to send a manual request using 'PATCH' method. The error returned states 'Unsupported Media Type'. As you can see from my code below, I'm sending a templated string as my body. Otherwise there is no other media.

const descr = folder_description: ${data.project_number} | ${data.project_stage.name.toUpperCase()};

egnyte.API.manual.sendRequest(
{
url: ${egn_url}/pubapi/v1/fs${path},
headers: {},
params: {},
method: "PATCH",
body: descr,
},
function (error) {
if (error === null) {
console.log("Description Updated.");
} else {
console.log(error);
}
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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