Wrong response schema for createSite when there is an error
matrixise opened this issue · comments
Stéphane Wirtel commented
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.
sbahir commented
@matrixise I have the same issue but I can't identify the root cause of this error
Do you know what could be the problem that triggers this error?
Thank you for the help