POST Codesign/UpdateProjectStatus
Updates CodeSign Protect project status.
Requirements
- Permissions: The caller must be a Code Signing Administrator, or a Owner.
- 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
Specify either Dn, Guid or Id.
|
Name |
Description |
|---|---|
|
Dn |
(Optional) The Distinguished Name (DN) of the signing project. Use the appropriate syntax. For example, in Postman: \\VED\\Code Signing\\Projects\\[YourPrjName]. |
|
Guid |
(Optional) The GUID that uniquely identifies the signing project. |
|
Id |
(Optional) The signing project identifier. |
|
ProjectStatus |
Required. The new project status change depends on the caller's role and current status. To get the current status, call POST Codesign/GetProject: Specify a status based on the role. For more information, see ProjectStatus object.
|
Returns
|
Name |
Description |
|---|---|
|
HTTP 200 |
For valid requests, this call returns a HTTP 200 message and the following data in the message body:
|
|
HTTP 400 |
For invalid requests, this call returns HTTP 400 Bad Request and the following data in the message body:
|
Example: Change a project status to Pending Approval
Request
POST https://codesign.venafi.example/vedsdk/UpdateProjectStatus
Authorization:Bearer 4MyGeneratedBearerTknz==
{
"Dn": "\\VED\\Code Signing\\Projects\\APIProjectDraft",
"ProjectStatus": "3"
}
Response
HTTP/1.1 200 OK
{
"Result": 1,
"Success": true
}