Key
Create or update a Key from a raw key file
Changed onUploads the key material as a file (PEM, or Base64/DER which is normalized to PEM) instead of embedding it in a JSON body. The same file is written to every environment named in environmentList. With override=true an existing key of that name is updated; otherwise a new key is created.
post/apiops/projects/{projectName}/keys/import-file/
Request
- Base URLhttp://167.86.118.166:32080
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
projectNamestring required
Query parameters
keyNamestring required
keyTypestring required
SECRET_KEY | PRIVATE_KEY | PUBLIC_KEY
algorithmstring
AES | DES | DESede | RSA — REQUIRED for SECRET_KEY
environmentListstring
comma seperated environment name values. REQUIRED when a single file is uploaded; when the ZIP produced by export-file is uploaded the environments are read from the package and this field is ignored.
keyDescriptionstring
aliasstring
overrideboolean
If true, the existing key with the same name is updated; if false or omitted, a new one is created.
Request body multipart/form-data
Response
successful operation!
Changes
- info
endpoint added
- info