Clear layout API does not work

Hi, I’m posting this because I was testing the
API and found a problem.
I hope this is useful for everyone.

According to the Swagger API documentation, clear layout is supposed to POST to
url/layout/{layoutId}, but this didn’t work at all.
I checked the CMS routing and found that it is handled by PUT at
url/layout/clear/{layoutId}.
I rewrote my application and tested it and it worked fine.
However, it is important to note that the layoutId is newly re-numbered.

1 Like

Hi @MarkMiura, thanks for pointing this out. I’ll raise an issue so the documentation can be updated accordingly. Appreciate you bringing this up.