POST Config/MutateObject

Changes the class of an existing object. Any attribute values assigned to the object are retained after the class has changed. If you are working with the Secret Store, call POST SecretStore/Mutate instead.

IMPORTANT  The attributes for the new class must be assigned after the class has changed in order for the object to be viable. Missing or invalid attributes may produce unexpected results.

Requirements

  • Permissions:  The caller must have Create permission and Delete permission to the requested object.
  • Token scope:  Configuration:Manage

Headers

  • Content type: Content-Type:application/json.

  • Token: The bearer access token that you received. For example, Authorization:Bearer 4MyGeneratedBearerTknz==. For more information, see Passing a bearer token in your API calls.

Parameters

Input parameters

Name

Description

ObjectDN

The Distinguished Name (DN) of the object.

Class

The new class name to assign to the object. For more information, see How to find class names and attributes.

Returns

Response description

Name

Description

HTTP 200

For valid requests, this call returns a HTTP 200 message and the following data in the message body:

  • Error : Appears only when the operation cannot supply the necessary data. Provides only a description and Result. No other data.
  • Result: The result code that indicates the reason for success or failure. For more information, see Config result codes.

HTTP 400

For invalid requests, this call returns HTTP 400 Bad Request and the following data in the message body:

  • error: The reason for the error.
  • error_description: If available, additional information about how to retry the request.

Example: Update the DN class name

Request

POST https://tpp.venafi.example/vedsdk/Config/MutateObject
Authorization:Bearer 4MyGeneratedBearerTknz== 
{
   "ObjectDN":"\\VED\\Policy\\folder\\Device2\\Basic2",
   "Class":"Apache"
}
		

Response

HTTP/1.1 200 OK
{
   "Result":1
}