Site auth users

List auth users

List all the auth users available in site.

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

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{id}/auth-users" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

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

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"}'

Show auth user

Show the auth user in site.

GET api/servers/{server}/sites/{id}/auth-users/{authUserId}

Example request:

curl -X GET "https://ploi.io/api/servers/{server}/sites/{id}/auth-users/{authUserId}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"

Delete auth user

Deletes a auth user in site

DELETE api/servers/{server}/sites/{id}/auth-users/{authUserId}

Example request:

curl -X DELETE "https://ploi.io/api/servers/{server}/sites/{id}/auth-users/{authUserId}" \
-H "Authorization: Bearer {token}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"