Set a secret
PUT
/api/orgs/{org}/projects/{project}/secrets/{name}
const url = 'https://api-dev.wrktr.com/api/orgs/example/projects/example/secrets/example';const options = { method: 'PUT', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"value":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request PUT \ --url https://api-dev.wrktr.com/api/orgs/example/projects/example/secrets/example \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "value": "example" }'Owners only. Names are capitals, digits and _, starting with a letter.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”org
required
string
project
required
string
name
required
string
Request Bodyrequired
Section titled “Request Bodyrequired”Media typeapplication/json
object
value
required
string
Examplegenerated
{ "value": "example"}Responses
Section titled “Responses”SecretInfo
Unauthorized
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Unauthorized"}Forbidden
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "Forbidden"}ProjectNotFound
Media typeapplication/json
object
_tag
required
string
project
required
string
Example
{ "_tag": "ProjectNotFound"}SecretsUnavailable
Media typeapplication/json
object
_tag
required
string
message
required
string
Example
{ "_tag": "SecretsUnavailable"}