Accept Certificate

Accept Certificate

Use this API to accept or decline a certificate. 'certificateId' can be obtained from /user_action API response.

Request
URI
PUT
https://{api_host}/accept_certificate
COPY
Header Parameters
string
sessionid
Required

The authentication token obtained from login API response


Request Body

Certificate acceptance details

PutAcceptCertificateRequest of type(s) application/json
Required
{
    "certificateId": "10.158.15.7:443",
    "accepted": true,
    "productType": "VCD",
    "productId": 10
}
string
certificateId
Required

Obtained from /user_action API response

boolean
accepted
Required

accepted

productType
Required

productType

integer
productId
Required

Obtained from Add /product API response

Responses
202

Certificate update successful

Operation doesn't return any data structure

400
Returns 400InvalidRequest of type(s) application/json
{
    "errCode": "GW_REQ_KEY",
    "errMessage": "Not found expected value for key 'sampleKey'"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


401
Returns 401Unauthorized_sessionID of type(s) application/json
{
    "errCode": "GW_LOGIN_REQUIRED",
    "errMessage": "Your session not found or already expired. Please login"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage


502

For example, product with the specified 'ProductType' and 'productId' is not found

Returns Error of type(s) application/json
{
    "errCode": "string",
    "errMessage": "string"
}
string
errCode
Optional

errCode

string
errMessage
Optional

errMessage