Skip to content

PKI CA Modify User REST API

ckelleyRH edited this page Jun 7, 2021 · 2 revisions

Request

  • Path: /ca/rest/admin/users/{userID}

  • Method: PATCH

  • Authentication: Client certificate

  • Parameters:

    • userID: string

Example

$ curl -k -X PATCH -H "Content-Type:application/json" -H "Accept: application/json" -d '{"FullName":"foobar"}' --user caadmin:Secret.123 -s https://localhost.localdomain:8443/ca/rest/admin/users/asdfg | python -m json.tool
{
    "id": "asdfg",
    "UserID": "asdfg",
    "FullName": "foobar",
    "Link": {
        "rel": "self",
        "href": "https://localhost.localdomain:8443/ca/rest/admin/users/asdfg",
        "type": "application/xml"
    },
    "Attributes": {
        "Attribute": []
    }
}
Clone this wiki locally