CONTENT_NAME_MISSING Issue when I create the page using API

Hello,

I was trying to create website page and landing page using Pages API but it’s not working at my end.

I was getting this issue from server.

HTTP 400

{
 "correlationId": "c3210cea-319b-4e88-bcf8-6bdb34eb7039",
 "errorTokens": {
 "contentType": [
 "LANDING_PAGE"
 ]
 },
 "errorType": "CONTENT_NAME_MISSING",
 "message": "You need to provide a name for this LANDING_PAGE.",
 "status": "error"
}

The same issue I faced in website pages as well.

I’m trying to add LANDING_PAGE as a params but at that time I faced same issue

Hi, @2CUBE-Studio :waving_hand: Thanks for reaching out. Hey, @Anton @weiliang_lee, do you have any experience here?

Best,

Jaycee

Hi @2CUBE-Studio I personally haven’t used the Pages API before but I could give a shot at it from your error messaging.

1. Can I confirm that you are trying to use this endpoint?

POST /cms/v3/pages/landing-pages

2. Also could you share a sample of the request body that you sending to the API?

Based on your error message it seems you are missing the required parameter for name.

Cheers

WL

I was getting soluction using V2 API. but V3 API, I also tried to add name or “LANDING_PAGE”, but it’s not work