Create a Modular Connector download link
Creates a personalized Modular Connector plugin package and returns a time-limited download link for it. Installing the package on a WordPress website connects it to Modular DS with no credentials to enter, and the website joins the team you choose. Use it to onboard a website that does not exist in Modular DS yet, or one you added by hand.
Returns the download link and the token’s expiry. The answer is 200, not 201, and it never carries the linking token itself: the token is inside the package.
Body
team(integer, required): the team the website joins once the plugin registers it.expires_at(date-time, optional): when the link token expires. Defaults to 24 hours from now; it must be a future date at most 7 days ahead.preset_uptime,preset_malware_scan,preset_broken_link,preset_backup(integer, optional): ids of the uptime, Malware Scanner, Broken Links Checker and backup global configurations to assign the website to as soon as it connects. Any you leave out or send asnullis skipped.
Errors
- 404: the team or a global configuration is not one of yours.
- 422:
expires_atis not a future date or is more than 7 days ahead.
Authentication
AuthorizationBearer
Personal access token created in the Modular DS dashboard; read-only tokens can only call GET endpoints.
Request
This endpoint expects an object.
expires_at
preset_backup
preset_broken_link
preset_malware_scan
preset_uptime
team
Response
200 - Connector download issued
jsonapi
meta
