Agency Hosting: Databases
Create Agency Plan website database user
Creates a user for an existing database on an Agency Plan website.
Each database supports a single non-system user; creating a user for a database that already has one fails.
post/api/agency-hosting/v1/websites/{website_uid}/databases/{database_name}/users
Path parameters
website_uidstring required
Example:zpwlGlp19
Agency Plan website UID
database_namestring required
Example:my_database
Full database name as returned by the list databases endpoint.
Request body
Example request
{
"database_user": "my_user",
"password": "Str0ngP@ssword!",
"host": "localhost"
}Response
Success response
Example response
{
"name": "my_user",
"host": "localhost",
"created_at": "2024-05-29T05:49:49+00:00"
}