POST Codesign/UpdateApplication

Updates the attributes of a signing application in CodeSign Protect. When you call Codesign/UpdateApplication, all attributes of a Application object automatically update.

Requirements

  • Permissions

    The caller must be a Code Signing Administrator or application administrator.

  • Token scope:  Codesign: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

Application

Pass the entire Application object.

  • If an attribute is missing, the value automatically clears.
  • Always specify DN, and Guid and one ore more of these changes: Description,Hash, Location, CommandRestrictionRegex, SignatoryIssuerSignatorySubject, SigningObjectFileArgumentPattern, Size, Version.
  • To get this data, call POST Codesign/GetApplication.

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 Success is false. An error message that accompanies the Result. Check your payload input values.

  • Result: The Result code of this API call. For more information, see Sign Result Codes.

  • Success: The result of this API call: A value of false indicates the request failed due to an Error. Otherwise, true.

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 Signatory subject of a sign tool

Request

POST https://codesign.venafi.example/vedsdk/Codesign/UpdateApplication
Authorization:Bearer 4MyGeneratedBearerTknz==
{
   "Application":{
      "Description":"Signs Product, X, Y, and Z",
      "Dn":"\\VED\\Code Signing\\Signing Applications\\Signtool - v7.1A",
      "Guid":"{zf168386-0136-44b2-8bda-43327a7aa2c1}",
      "Hash":"",
      "SignatoryIssuer":"Microsoft Corporation",
      "SignatorySubject":"Microsoft Corporation",
      "Size":"40",
      "Version":"7.1A"
   }
}
        

Response

HTTP/1.1 200 OK
{
   "Result":1,
   "Success":true
}