PUT
/
rest
/
secrets
/
{id}
curl --request PUT \
  --url https://copilotz.com/rest/secrets/{id} \
  --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
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Body

application/json

Request payload for creating or updating a secret.

Response

200 - application/json

Successful response

Response containing secret details.