Enable/Disable Secure Mode on Public Key
Changed onEnable or disable secure mode on an existing public key (e.g. ws_pubk_...).
patch/v1/{workspace}/ws_public_key/{public_key_id}/
Request
- Base URLhttps://management-api.suprsend.com
- AuthAPI key in header Authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
workspacestring required
Workspace slug (e.g. staging, production).
public_key_idstring required
Public key identifier (e.g. ws_pubk_...).
Request body
Response
Secure mode update accepted.
Example response
{
"id": "ws_pubk_exampleId01",
"api_key": "SS.PUBK.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"name": "web-app",
"created_by": {
"name": "System User",
"email": "user@example.com"
},
"rotated_by": {
"name": "System User",
"email": "user@example.com"
},
"updated_by": {
"name": "System User",
"email": "user@example.com"
}
}Changes
- breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response400 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response401 - breaking
response property
detaillist-of-types was widened by adding typesarray and objectto media typeapplication/jsonof response404
- breaking