Ploi API
Ploi API

Create auth user

Creates a new auth user in site.

POST api/servers/{server}/sites/{id}/auth-users

Parameters

Parameter Type Status Description
name string required Minimum: 2 Maximum: 255
password string required Minimum: 2 Maximum: 255
path string optional Allows you to protect a specific path in your app

Example request:

curl -X POST "https://ploi.io/api/servers/{server}/sites/{id}/auth-users" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
--data '{"name":"user", "password":"password", "path": "/wp-admin"}'