I’ve been testing out the secrets endpoints and noticed that update is not working. I’ve followed the API documentation and tested using the doppler provided postman collection but it continues to fail. Is anyone else experiencing something similar? Any help is appreciated!
Below is a sample of how my request is structured.
Could you provide the full output you’re getting back? I just tested this endpoint myself and it worked as expected. Are you using a service token you created specifically for the config? Or are you using your local CLI token for testing? To rule out a token issue, try changing your authorization header line to this:
--header 'authorization: Bearer $(doppler configure get token --plain)' \
that will have it use your local CLI token, which should have access to all projects and configs in your workplace (assuming you’re an Owner). If that works, then the issue is likely with the service token you were using. If it still doesn’t work, post the output and I’ll see what I can do to help!
Not sure if this was a copy/paste mistake, but your JSON is malformed. You’re missing a closing quote next to the secret name. That said, I’d expect an invalid JSON error in the response if that were the problem. I just ran this and it worked fine:
@watsonian ,
Yes…that was a copy/paste error. The Body I have specified in Postman has properly formatted JSON.
Thank you for the advice. I tested outside of postman and its working. So postman must have some sort of configuration that is producing this oddity. I’ll continue to tinker and I’ll compare my collection to Doppler’s public postman workspace.