Set a project secret definition
PUT
/v1/organisations/{id}/projects/{pid}/secrets/{name}Operation secrets.projectSet · since 2026-11-05 · stable
Needs a session withwritescopeAnswers200 OK
The previewed changes for each environment, and those skipped.
Path parameters
- idstring (uuid)required
- The organisation id.
- pidstring (uuid)required
- The project id.
- namestringrequired
- The secret group.
Body (JSON)
Fields not listed here are refused.
- variablesobjectoptional
- NAME to value.
- secretsobjectoptional
- NAME to value, null to remove, at most 100.
- generatearray of namesoptional
- Names Rykloud makes a random value for.
Errors
Every error is { "error", "message", "detail"? } (Errors and references). Besides the codes any route can answer.
PUT/v1/organisations/{id}/projects/{pid}/secrets/{name}
curl -X PUT "https://api.rykloud.com/v1/organisations/$ORG_ID/projects/$PROJECT_ID/secrets/$NAME" \
-H "Authorization: Bearer $RYKLOUD_TOKEN"