Hi, Is there a way to create a secret in pactflow ...
# pactflow
n
Hi, Is there a way to create a secret in pactflow via an API or via the cli? I couldn’t see anything in the documentation.
preference for curl. I had a look in the HAL browser “No documentation exists for this relation yet.”
works:
Copy code
curl '<https://xxx.pactflow.io/secrets>' -H 'Authorization: Bearer xxx' -H 'Content-Type: application/json' -d '{
    "name": "NathansTestSecret",
    "teamUuid": "xxx",
    "description": "Some Description",
    "value": "NathsnTestValue"
}'
🙌 1
y
nice. it should be part of the public api docs soon i believe. i always make calls in the browser and grab the curl req remove all the headers i don’t need and go from there you can also plug a proxy in and spy on your traffic to get the calls for different actions
👍 2
i have an alias for curl with the header value read form the token env var. i really like gh’s cli that let you do prescribed things, but then also get access to an api client, and also extend it with bash scripts/go scripts etc