Set Shared Workflow Secret
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/workflows/secrets/{name} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"value": "<string>",
"allowed_hosts": [
"<string>"
],
"kind": "value",
"token_url": "",
"client_id": "",
"scope": ""
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workflows/secrets/{name}"
payload = {
"value": "<string>",
"allowed_hosts": ["<string>"],
"kind": "value",
"token_url": "",
"client_id": "",
"scope": ""
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: '<string>',
allowed_hosts: ['<string>'],
kind: 'value',
token_url: '',
client_id: '',
scope: ''
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workflows/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Workflows
Set Shared Workflow Secret
PUT
/
api
/
v1
/
workflows
/
secrets
/
{name}
Set Shared Workflow Secret
curl --request PUT \
--url https://{tenant_id}.api.useago.com/api/v1/workflows/secrets/{name} \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '
{
"value": "<string>",
"allowed_hosts": [
"<string>"
],
"kind": "value",
"token_url": "",
"client_id": "",
"scope": ""
}
'import requests
url = "https://{tenant_id}.api.useago.com/api/v1/workflows/secrets/{name}"
payload = {
"value": "<string>",
"allowed_hosts": ["<string>"],
"kind": "value",
"token_url": "",
"client_id": "",
"scope": ""
}
headers = {
"X-API-Key": "<api-key>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {'X-API-Key': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
value: '<string>',
allowed_hosts: ['<string>'],
kind: 'value',
token_url: '',
client_id: '',
scope: ''
})
};
fetch('https://{tenant_id}.api.useago.com/api/v1/workflows/secrets/{name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Body
application/json
Response
200
OK
