Skip to content

Publish a Listing results in a 400 error - "status[0] is not of type integer." #87

@p3t3bush

Description

@p3t3bush

Trying to create a Listing, but when I attempt to Publish in the WP Admin Console, I receive the error.

Wordpress 5.3.2
PHP 7.0

Request
path=/wp-json/wp/v2/listing/742?_locale=user
payload={“id”:742,”status”:[“p”,”e”,”n”,”d”,”i”,”n”,”g”],”content”:””}

Response:
{“code”:”rest_invalid_param”,”message”:”Invalid parameter(s): status”,”data”:{“status”:400,”params”:{“status”:”status[0] is not of type integer.”}}}

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