Updates a key_pair with given parameters
Param name | Description |
---|---|
key_pair required |
Object containing information about the key_pair to be updated Value: Must be a Hash |
pretty optional |
Return a pretty formatted response if true, Default is false Value: Must be a Boolean |
is_oem optional |
Update key pair of child account if is_oem flag is true. Value: Must be a Boolean |
child_organisation_key optional |
Organisation key of child account where oem user wants to update key pair. Required field if is_oem is present. Value: Must be a String |
Request - containing parameters to be modified curl -X PUT -H "Content-Type:application/json" -H "X-Auth-Token:WtUFnj8pvSxVnH9e_xkq7A" -d '{"key_pair":{"expiry_date":"09/09/2016", "enabled":"false"}, "role_key":"517d8e4695"}' https://api.datonis.io/api/v3/key_pairs/abec9bb3d2e18c2c1dt4t792b3t73768bf7d68cd Response (returns details of the key_pair updated) { "key_pair": { "access_key": "abec9bb3d2e18c2c1dt4t792b3t73768bf7d68cd", "enabled": false, "expiry_date": "2016-09-09T00:00:00.000Z", "secret_key": "f2ddt21at5f56128a36t8t9949231acc89481f2f", "key_pair_key": "abec9bb3d2e18c2c1dt4t792b3t73768bf7d68cd", "created_at": 1446448242, "updated_at": 1446448779, "role_name": "Write Only", "role_key": "517d8e4695" } }