Unable to suspend a customer via REST API: The client login name is not unique.

Follow

Comments

4 comments

  • Avatar
    Harry Lewis

    Seems like you're doing a POST (create) when you should be doing a PUT or PATCH (update)

  • Avatar
    Ivan Postnikov

    Hello @Harry,

    Thank you for the message.

    The issue has a different cause and connected with api request processing. The issue is resolved in the next major release.

  • Avatar
    Harry Lewis

    Hi @Ivan

     

    If this is indeed a RESTful API, a POST to /clients would create a customer, so they should use PUT to update a customer as-per the docs:

    https://app.swaggerhub.com/apis-docs/plesk/api/v2#/Clients/put_clients__id_

  • Avatar
    Ivan Postnikov

    Hello @Harry,

    Thank you for the provided info.

    The article was updated. The issue is already fixed. Fix will be included in the next major release and is already available in a preview version (preview versions are not recommended for production).

Please sign in to leave a comment.

Have more questions? Submit a request