Apply SEO fix
Changed on<Info>This API is in beta. Endpoints, fields, and behavior may still change, so avoid depending on it in production.</Info>
Applies the fix for one check from an SEO scan and returns what it did.
Get the checks from Run SEO scan or Get last SEO scan. Each check Base44 can act on carries a fix_action. Send its type as fix_type and its params as params.
The fix actions fall into three groups. Some change the app's SEO settings, some change the app itself, and the rest change nothing and point you to the app editor screen where you make the fix. An action that changes settings replaces the value it sets, including a value someone edited by hand. The exception is generate_page_meta with overwrite_existing set to false in params, as the scan sends it: it keeps page titles and descriptions someone wrote by hand.
No action edits the app's code, creates a checkpoint, or uses the workspace's credits.
A call can succeed and still report success as false when the action had nothing to apply, such as generate_json_ld on an app with no entity Base44 can match to a Schema.org type.
Calling an action again applies it again. Most land on the same result every time, but generate_description writes a new description on each call.
A successful call means the change is saved. The live site can take a little while to catch up.
<Warning>The response includes fields beyond the ones documented here. Don't rely on undocumented response fields, as they can change at any time. Send only the fix_type values documented here. Other values are not supported and their behavior can change.</Warning>
Request
- Base URLhttps://app.base44.com
- URLhttps://app.base44.com/api/apps/{app_id}/seo/fix
- AuthHTTP bearer
Path parameters
ID of the app to fix.
Request body
Example request
{
"fix_type": "enable_llms_txt",
"params": {}
}Response
What the action did.
Example response
{
"result": {
"success": true,
"message": "llms.txt enabled",
"redirect": "domains"
}
}Changes
- info
the endpoint scheme security
PersonalAccessTokenAuthwas added to the API
- info
- info
endpoint added
- info