cURL
curl --request POST \ --url https://copilotz.com/rest/secrets \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "name": "SECRET_NAME", "value": "SECRET_VALUE", "createdBy": 1 }'
{ "name": "SECRET_NAME", "value": "SECRET_VALUE", "createdBy": 1 }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Request payload for creating or updating a secret.
Name of the secret.
"SECRET_NAME"
Value of the secret.
"SECRET_VALUE"
ID of the user who created the secret.
1
Successful response
Response containing secret details.