Fragments
Create fragment
Create a reusable HTML fragment. Returns include_tag to embed in pages: <!--#wps-include fragment="name" -->. Use for shared elements like nav, footer.
post/papi/project/{projectId}/fragments
Request
- Base URL: https://api.websitepublisher.ai
- URL: https://api.websitepublisher.ai/papi/project/{projectId}/fragments
- Auth: OAuth 2 (authorization code, authorization URL https://api.websitepublisher.ai/dapi/oauth/authorize, token URL https://api.websitepublisher.ai/dapi/oauth/token, scopes: read, write)
Path parameters
projectIdinteger required
Request body
Example request
{
"name": "menu"
}Response
Fragment created, includes include_tag
Changes
No recorded changes to this operation across all 1 revision of this API.