- Server operating system version
- Ubuntu 22
- Plesk version and microupdate number
- 18.0.53
Hi there,
I want to make a user using the REST API, but I get following message
I'm sending following data to endpoint -X POST https://SERVER/api/v2/ftpusers
I want to make a user using the REST API, but I get following message
JSON:
{
"code" : 1014,
"message" : "Parser error: Request is invalid. Error in line 1: Element 'webspace-id': '0' is not a valid value of the atomic type 'id_type'."
}
I'm sending following data to endpoint -X POST https://SERVER/api/v2/ftpusers
JSON:
{
"home" : "/ftp-exports/customers/3",
"name" : "USERNAME",
"parent_domain" :
{
"guid" : "99999a99-999a-9a99-a999-9a9a9999a9a9",
"id" : 2,
"name" : "NAME"
},
"password" : "PASSWORD",
"permissions" :
{
"read" : "true",
"write" : "false"
}
}