PATCH ./certificates/{id}
- The PATCH endpoint is used to update an existing certificate. The {id} parameter is required and should be the ID of the certificate to update. The PATCH endpoint accepts the following parameters:
PATCH parameters
Name | Value Type | Validation | Details |
---|---|---|---|
cerDate | (string) | Optional | The date of the certificate in RFC format. This field is optional. |
cerNumber | (integer) | Optional | The number of the certificate. This field is optional. |
cerReason | (string) | Optional | The reason for the certificate. This field is optional. |
cerShowLogo | (boolean) | Optional | Whether to show the logo or not. This field is optional. |
cerDiplomaBackground | (string) | Optional | The background of the diploma. This field is optional. |
- The response is the updated certificate data. If the update is successful, the response will be the updated certificate data. If an error occurs during the update, the function will return an error message.
Output example
{"success": true}