adobe / adobe/spacecat-api-service
API to enable/disable audit and audit type(s) in bulk for given a list of sites
- Dominant language
- JavaScript
- Stars
- 10
- Forks
- 15
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 150
Description
**Is your feature request related to a problem? Please describe.**
For audit types like broken backlinks, where API calls to external service cost, we want to progressively enable the audit starting with specific sites.
The current flow is manual and time consuming:
* disable audit type for all sites
* enable audit type for specific sites, which means for each site, manually using the API:
* encode the baseURL
* get the current site audit configuration via API https://opensource.adobe.com/spacecat-api-service/#tag/site/operation/getSiteByBaseUrl
* patch the audit configuration with the change via API https://opensource.adobe.com/spacecat-api-service/#tag/site/operation/patchSite
**Describe the solution you'd like**
An API that, given a list of sites (baseURLs, not encoded) and the changes to apply to audit config, updates the audit config for all those sites accordingly.
**Describe alternatives you've considered**
Scripting that would actually do the same, but outside the API, and could be error-prone
Examples: https://github.com/iuliag/spacecat-automation-tools, https://github.com/basecode/aem-seo-research/blob/main/enable-404.js
**Asks that could have been solved by the feature**
https://cq-dev.slack.com/archives/C05A45JBP9N/p1710871764208859
https://cq-dev.slack.com/archives/C05A45JBP9N/p1710865140475059
Contributor guide
Assessment
This issue has not been assessed yet.