Using the beta update Secrets API endpoint

Hello community. I’m wondering if anyone has had success using the beta update Secrets API endpoint?

Below is a sample of how my request is structured.

curl --request POST \
     --url \
     --header 'accept: application/json' \
     --header 'authorization: Bearer my_service_key' \
     --header 'content-type: application/json' \
     --data '
  "project": "my_project_name",
  "config": "my_config_name",
  "secrets": {
    "my_secret_name: "my_secret_value"

After sending the request I receive a 400 Bad Request and the following response.

    "messages": [
        "Either secrets or change_requests must be specified"
    "success": false

There is a section in the API documentation that states:

The change_requests parameter is a new parameter that is an array whose elements are objects matching the following format. This endpoint must receive either a secrets or change_requests parameter (but not both).

I’ve not had success structuring my request to successfully update a secret. Any help would be greatly appreciated.

You will experience this error using Postman if you’re excluding the Content-Length generated header in your request.