Skip to content

Wrong response schema for createSite when there is an error #377

@matrixise

Description

@matrixise

When you read the documentation of createSite

When there is an error, the response schema is

{ message: string, code: integer<int64> }

but it's not the case because we get this JSON message:

{
    "errors": {
        "subdomain": ["must be unique"]
    }
}

Also, the status code is 422, it's not documented.

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