Theme Field validation

This API is intentionally temporary, do not rely on it for long term tooling. For more context on this endpoint see our changelog post.

Returns a list of validation errors found in your themes

At the launch of CMS Hub themes, the fields.json file was not validated for errors. We're providing this API to give developers who've already implemented themes a path to fixing issues with their fields.json file before these errors are shown in the design manager.

If you've built a theme before August 17th we encourage you to use this API to check your fields.json files.

Required parameters

Portalid - your HubSpot account ID

Hapikey - your HubSpot account API Key

Use either path or id.

Path - The path to your theme directory. (not the path directly to the theme's fields.json)

id - Design Manager id for the theme.

 

If you get a 200 ok with a response of [] congratulations, you have no errors.

You only need the id parameter OR the path parameter not both. We apologize that the test-in-page functionality does not work as a result. We recommend using a tool like PostMan or custom scripting to test with just one of the parameters.