Skip to content

Custom hostnames - addHostname does not work #230

@4ice

Description

@4ice

When I try to execute the following:

new CustomHostnames($this->adapter)->addHostname(
            "zone_id",
            "mydomain.com",
        );

I get the error message: Unable to decode the JSON request body. Please check your input and try again..

I tried to modify the addHostname-function and remove the ssl-array, and by doing that, I could successfully create a custom hostname.

I am using a free-plan account on cloudflare.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions