APIs & Integrations

SvanEck
Membre

Test call in docs returns an error

Hello,

 

If I do a test call on https://developers.hubspot.com/docs/api/cms/pages at the POST/cms/v3/pages/site-pages endpoint it results the following error:

 

 

 

 

HTTP 400 { "correlationId": "xxx", "message": "Invalid input JSON on line 1, column 386: Problem deserializing property 'publishDate' (expected type: [simple type, class com.hubspot.jinjava.objects.date.PyishDate]; actual type: `java.util.Date`), problem: Can not set com.hubspot.jinjava.objects.date.PyishDate field com.hubspot.content.model.ContentLanguageVariation.publishDate to java.util.Date", "status": "error" }

 

 

 

 

 

Screenshot 2024-04-23 at 16.29.09.png

0 Votes
2 Réponses
SvanEck
Membre

Test call in docs returns an error

I didn't change anything so acording to the docs https://developers.hubspot.com/docs/api/cms/pages at the POST/cms/v3/pages/site-pages endpoint this is the body of the post:

 

{
  "publishDate": "2024-04-25T06:56:26.919Z",
  "language": "af",
  "enableLayoutStylesheets": true,
  "metaDescription": "string",
  "attachedStylesheets": [
    {
      "additionalProp1": {},
      "additionalProp2": {},
      "additionalProp3": {}
    }
  ],
  "password": "string",
  "publishImmediately": true,
  "htmlTitle": "string",
  "translations": {
    "additionalProp1": {
      "archivedInDashboard": true,
      "created": "2024-04-25T06:56:26.919Z",
      "tagIds": [],
      "publishDate": "2024-04-25T06:56:26.919Z",
      "publicAccessRules": [
        {}
      ],
      "password": "string",
      "authorName": "string",
      "publicAccessRulesEnabled": true,
      "name": "string",
      "campaign": "string",
      "id": 0,
      "state": "string",
      "updated": "2024-04-25T06:56:26.919Z",
      "slug": "string"
    },
    "additionalProp2": {
      "archivedInDashboard": true,
      "created": "2024-04-25T06:56:26.919Z",
      "tagIds": [],
      "publishDate": "2024-04-25T06:56:26.919Z",
      "publicAccessRules": [
        {}
      ],
      "password": "string",
      "authorName": "string",
      "publicAccessRulesEnabled": true,
      "name": "string",
      "campaign": "string",
      "id": 0,
      "state": "string",
      "updated": "2024-04-25T06:56:26.919Z",
      "slug": "string"
    },
    "additionalProp3": {
      "archivedInDashboard": true,
      "created": "2024-04-25T06:56:26.919Z",
      "tagIds": [],
      "publishDate": "2024-04-25T06:56:26.919Z",
      "publicAccessRules": [
        {}
      ],
      "password": "string",
      "authorName": "string",
      "publicAccessRulesEnabled": true,
      "name": "string",
      "campaign": "string",
      "id": 0,
      "state": "string",
      "updated": "2024-04-25T06:56:26.919Z",
      "slug": "string"
    }
  },
  "id": "string",
  "state": "string",
  "slug": "string",
  "createdById": "string",
  "currentlyPublished": true,
  "archivedInDashboard": true,
  "created": "2024-04-25T06:56:26.919Z",
  "contentTypeCategory": "0",
  "mabExperimentId": "string",
  "updatedById": "string",
  "translatedFromId": "string",
  "folderId": "string",
  "widgetContainers": {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  },
  "pageExpiryRedirectId": 0,
  "dynamicPageDataSourceType": 0,
  "featuredImage": "string",
  "authorName": "string",
  "domain": "string",
  "name": "string",
  "dynamicPageHubDbTableId": "string",
  "campaign": "string",
  "dynamicPageDataSourceId": "string",
  "enableDomainStylesheets": true,
  "includeDefaultCustomCss": true,
  "subcategory": "string",
  "layoutSections": {
    "additionalProp1": {
      "cssStyle": "string",
      "label": "string",
      "type": "string",
      "params": {
        "additionalProp1": {},
        "additionalProp2": {},
        "additionalProp3": {}
      },
      "rows": [
        {
          "additionalProp1": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          },
          "additionalProp2": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          },
          "additionalProp3": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          }
        }
      ],
      "rowMetaData": [
        {
          "cssClass": "string",
          "styles": {
            "backgroundColor": {
              "a": 0,
              "r": 0,
              "b": 0,
              "g": 0
            },
            "flexboxPositioning": "string",
            "backgroundImage": {
              "imageUrl": "string",
              "backgroundSize": "string",
              "backgroundPosition": "string"
            },
            "forceFullWidthSection": true,
            "verticalAlignment": "string",
            "maxWidthSectionCentering": 0,
            "backgroundGradient": {
              "angle": {
                "units": "string",
                "value": 0
              },
              "sideOrCorner": {
                "horizontalSide": "string",
                "verticalSide": "string"
              },
              "colors": [
                {
                  "color": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  }
                }
              ]
            }
          }
        }
      ],
      "cells": [],
      "cssClass": "string",
      "w": 0,
      "cssId": "string",
      "x": 0,
      "name": "string",
      "styles": {
        "backgroundColor": {
          "a": 0,
          "r": 0,
          "b": 0,
          "g": 0
        },
        "flexboxPositioning": "string",
        "backgroundImage": {
          "imageUrl": "string",
          "backgroundSize": "string",
          "backgroundPosition": "string"
        },
        "forceFullWidthSection": true,
        "verticalAlignment": "string",
        "maxWidthSectionCentering": 0,
        "backgroundGradient": {
          "angle": {
            "units": "string",
            "value": 0
          },
          "sideOrCorner": {
            "horizontalSide": "string",
            "verticalSide": "string"
          },
          "colors": [
            {
              "color": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              }
            }
          ]
        }
      }
    },
    "additionalProp2": {
      "cssStyle": "string",
      "label": "string",
      "type": "string",
      "params": {
        "additionalProp1": {},
        "additionalProp2": {},
        "additionalProp3": {}
      },
      "rows": [
        {
          "additionalProp1": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          },
          "additionalProp2": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          },
          "additionalProp3": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          }
        }
      ],
      "rowMetaData": [
        {
          "cssClass": "string",
          "styles": {
            "backgroundColor": {
              "a": 0,
              "r": 0,
              "b": 0,
              "g": 0
            },
            "flexboxPositioning": "string",
            "backgroundImage": {
              "imageUrl": "string",
              "backgroundSize": "string",
              "backgroundPosition": "string"
            },
            "forceFullWidthSection": true,
            "verticalAlignment": "string",
            "maxWidthSectionCentering": 0,
            "backgroundGradient": {
              "angle": {
                "units": "string",
                "value": 0
              },
              "sideOrCorner": {
                "horizontalSide": "string",
                "verticalSide": "string"
              },
              "colors": [
                {
                  "color": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  }
                }
              ]
            }
          }
        }
      ],
      "cells": [],
      "cssClass": "string",
      "w": 0,
      "cssId": "string",
      "x": 0,
      "name": "string",
      "styles": {
        "backgroundColor": {
          "a": 0,
          "r": 0,
          "b": 0,
          "g": 0
        },
        "flexboxPositioning": "string",
        "backgroundImage": {
          "imageUrl": "string",
          "backgroundSize": "string",
          "backgroundPosition": "string"
        },
        "forceFullWidthSection": true,
        "verticalAlignment": "string",
        "maxWidthSectionCentering": 0,
        "backgroundGradient": {
          "angle": {
            "units": "string",
            "value": 0
          },
          "sideOrCorner": {
            "horizontalSide": "string",
            "verticalSide": "string"
          },
          "colors": [
            {
              "color": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              }
            }
          ]
        }
      }
    },
    "additionalProp3": {
      "cssStyle": "string",
      "label": "string",
      "type": "string",
      "params": {
        "additionalProp1": {},
        "additionalProp2": {},
        "additionalProp3": {}
      },
      "rows": [
        {
          "additionalProp1": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          },
          "additionalProp2": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          },
          "additionalProp3": {
            "cssStyle": "string",
            "label": "string",
            "type": "string",
            "params": {
              "additionalProp1": {},
              "additionalProp2": {},
              "additionalProp3": {}
            },
            "rows": [
              {
                "additionalProp1": null,
                "additionalProp2": null,
                "additionalProp3": null
              }
            ],
            "rowMetaData": [
              {
                "cssClass": "string",
                "styles": {
                  "backgroundColor": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  },
                  "flexboxPositioning": "string",
                  "backgroundImage": {
                    "imageUrl": "string",
                    "backgroundSize": "string",
                    "backgroundPosition": "string"
                  },
                  "forceFullWidthSection": true,
                  "verticalAlignment": "string",
                  "maxWidthSectionCentering": 0,
                  "backgroundGradient": {
                    "angle": {
                      "units": "string",
                      "value": 0
                    },
                    "sideOrCorner": {
                      "horizontalSide": "string",
                      "verticalSide": "string"
                    },
                    "colors": [
                      {
                        "color": {
                          "a": 0,
                          "r": 0,
                          "b": 0,
                          "g": 0
                        }
                      }
                    ]
                  }
                }
              }
            ],
            "cells": [],
            "cssClass": "string",
            "w": 0,
            "cssId": "string",
            "x": 0,
            "name": "string",
            "styles": {
              "backgroundColor": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              },
              "flexboxPositioning": "string",
              "backgroundImage": {
                "imageUrl": "string",
                "backgroundSize": "string",
                "backgroundPosition": "string"
              },
              "forceFullWidthSection": true,
              "verticalAlignment": "string",
              "maxWidthSectionCentering": 0,
              "backgroundGradient": {
                "angle": {
                  "units": "string",
                  "value": 0
                },
                "sideOrCorner": {
                  "horizontalSide": "string",
                  "verticalSide": "string"
                },
                "colors": [
                  {
                    "color": {
                      "a": 0,
                      "r": 0,
                      "b": 0,
                      "g": 0
                    }
                  }
                ]
              }
            }
          }
        }
      ],
      "rowMetaData": [
        {
          "cssClass": "string",
          "styles": {
            "backgroundColor": {
              "a": 0,
              "r": 0,
              "b": 0,
              "g": 0
            },
            "flexboxPositioning": "string",
            "backgroundImage": {
              "imageUrl": "string",
              "backgroundSize": "string",
              "backgroundPosition": "string"
            },
            "forceFullWidthSection": true,
            "verticalAlignment": "string",
            "maxWidthSectionCentering": 0,
            "backgroundGradient": {
              "angle": {
                "units": "string",
                "value": 0
              },
              "sideOrCorner": {
                "horizontalSide": "string",
                "verticalSide": "string"
              },
              "colors": [
                {
                  "color": {
                    "a": 0,
                    "r": 0,
                    "b": 0,
                    "g": 0
                  }
                }
              ]
            }
          }
        }
      ],
      "cells": [],
      "cssClass": "string",
      "w": 0,
      "cssId": "string",
      "x": 0,
      "name": "string",
      "styles": {
        "backgroundColor": {
          "a": 0,
          "r": 0,
          "b": 0,
          "g": 0
        },
        "flexboxPositioning": "string",
        "backgroundImage": {
          "imageUrl": "string",
          "backgroundSize": "string",
          "backgroundPosition": "string"
        },
        "forceFullWidthSection": true,
        "verticalAlignment": "string",
        "maxWidthSectionCentering": 0,
        "backgroundGradient": {
          "angle": {
            "units": "string",
            "value": 0
          },
          "sideOrCorner": {
            "horizontalSide": "string",
            "verticalSide": "string"
          },
          "colors": [
            {
              "color": {
                "a": 0,
                "r": 0,
                "b": 0,
                "g": 0
              }
            }
          ]
        }
      }
    }
  },
  "updated": "2024-04-25T06:56:26.919Z",
  "footerHtml": "string",
  "widgets": {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  },
  "headHtml": "string",
  "pageExpiryRedirectUrl": "string",
  "abStatus": "master",
  "useFeaturedImage": true,
  "abTestId": "string",
  "featuredImageAltText": "string",
  "contentGroupId": "string",
  "pageExpiryEnabled": true,
  "templatePath": "string",
  "url": "string",
  "publicAccessRules": [
    {}
  ],
  "archivedAt": "2024-04-25T06:56:26.919Z",
  "themeSettingsValues": {
    "additionalProp1": {},
    "additionalProp2": {},
    "additionalProp3": {}
  },
  "pageExpiryDate": 0,
  "publicAccessRulesEnabled": true,
  "pageRedirected": true,
  "currentState": "AUTOMATED",
  "categoryId": 0,
  "linkRelCanonicalUrl": "string"
}

 

And this is the response:

 

HTTP 400

{
  "correlationId": "364e0d34-a374-47ba-84c1-7c56aa7a07eb",
  "message": "Invalid input JSON on line 1, column 386: Problem deserializing property 'publishDate' (expected type: [simple type, class com.hubspot.jinjava.objects.date.PyishDate]; actual type: `java.util.Date`), problem: Can not set com.hubspot.jinjava.objects.date.PyishDate field com.hubspot.content.model.ContentLanguageVariation.publishDate to java.util.Date",
  "status": "error"
}
0 Votes
Jaycee_Lewis
Gestionnaire de communauté
Gestionnaire de communauté

Test call in docs returns an error

Hey, @SvanEck 👋 Welcome to our community. 

 

Can you copy + paste your request and response here? The error is telling us there is an issue with the formatting of the publishDate property. It's challenging to reproduce your issue using only a screenshot.

 

Thanks! — Jaycee

linkedin

Jaycee Lewis

Developer Community Manager

Community | HubSpot

0 Votes