/php/domains/notify
0.2.0Unchanged since publicationEmail domain owners about PHP security support end dates
settingsallThis operation requires an administrator and a token with the settings scope.
Use domains to select domains by name, php_version to select domains running a version such as 8.2, follows_default to select domains that follow the server's default PHP version, or all to select every domain. The q filter matches part of a domain name or alias, or the owner's full username. The owner filter selects domains owned by the specified account.
The operation returns 400 if no selection is provided, domains contains more than 5000 names, or q exceeds 200 characters or contains a character from U+0000 through U+001F.
UrbeStack notifies owners of selected domains running PHP versions whose security support has ended or ends in fewer than 120 days. The result counts domains skipped because their PHP version falls outside this window. Each owner receives one message at the email address on their account. It lists their affected domains and the date security support ends or ended for each version. It also explains how to switch to the server's default PHP version in the Domains section of the web interface.
If preview is true, the operation returns 200 with the messages that would be sent and sends no email. Otherwise, it queues a php-notify job and returns 202 with the job ID in the job field. The job records each owner's delivery result and updates its progress in the Jobs section.
When the job has owners to notify, UrbeStack sends one summary to administrators subscribed to php.version_ending. The summary shows each owner's delivery status, including missing email addresses and sending failures.
As commands
Run as root on the serverallbooleandomainsarray of string, up to 253 charactersfollows_defaultbooleanownerUsernamephp_versionstring, matching ^[5-9]\.[0-9]$previewbooleanqstring, up to 200 charactersExample
See the API overview for how to set $API and $TOKEN.curl -sS -X POST "$API/php/domains/notify" \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"all": true,
"domains": [
"text"
],
"follows_default": true,
"owner": "alice",
"php_version": "8.4",
"preview": true,
"q": "text"
}'200 OK{}Errors
21 errors, each a status and a sentence400A new job is queued or running400Domain name required400Domain name too long400Invalid <what>: 400Invalid <what>: expected a non-negative integer400Invalid PHP version, expected e.g. 8.2400Invalid domain name400Invalid setting key400Invalid username: 2 to 32 lowercase letters, digits or underscores, starting with a letter400Job parameters must be an object400Name the domains (--domain), give the filter that picks them (--version, --follows-default, --q, --owner), or --all400Name the domains, give the filter that picks them (php_version, follows_default, q, owner), or all400Unknown PHP version '<version>'400Unknown job type400Username '<value>' is reserved400domains is a list of up to 5000 names400per_page is a number from 1 to 1000400q is a text of up to 200 characters401Authentication required404Setting '<key>' not found404User '<user>' not foundurbestack.com/docs/api/post-php-domains-notify/