Skip to content

415 on get invitation-link #74

@benoit03

Description

@benoit03

Hello,
i receive a 415 when i try to generate an invitation-link with your module.

i have an access token, my businessID, everything work fine to get all review :
await client("/v1/private/business-units/${process.env.TRUSTPILOT_BUSINESS_ID}/reviews")

but when i try to generate an invitation-link, i have a 415, it's a problem of media type. Maybe the content type : apllication/json is not set. But i don't know how to set it with your module.

This is my request :

await client.post("/v1/private/business-units/${process.env.TRUSTPILOT_BUSINESS_ID}/invitation-links", { name: user.name, locale: "fr-FR", redirectUri: "https://stootie.com", email: user.email, });

everything work fine on POSTMAN.

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