modify_user

POST {{pgbc_server}}/cgi-bin/pgbc_api/add_user?username={{block_user}}&password={{block_user_password}}&newuser={{$randomFirstName}}&newuserpassword=password

This endpoint makes an HTTP POST request to retrieve the count of users. The request includes the username and password as query parameters. Upon successful execution, the response is a JSON object representing the user count. Below is the JSON schema for the response:

{
  "type": "number"
}

Request Params

KeyDatatypeRequiredDescription
usernamestringThe block user name (note this is different to the instance name)
passwordstringThe block user password (note this is different to the instance password)
newuserstringRandom first name
newuserpasswordstringpassword as password (for testing)

HEADERS

KeyDatatypeRequiredDescription
AuthorizationstringGet the api token using getApiKey

RESPONSES

status: OK

5