curl -X PATCH \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
--data '{ "value": "my-new-value" }' \
https://api.together.ai/v1/deployments/secrets/my-secret{
"created_at": "<string>",
"created_by": "<string>",
"description": "<string>",
"id": "<string>",
"last_updated_by": "<string>",
"name": "<string>",
"object": "<string>",
"updated_at": "<string>"
}Update an existing secret’s value or metadata
curl -X PATCH \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
--data '{ "value": "my-new-value" }' \
https://api.together.ai/v1/deployments/secrets/my-secret{
"created_at": "<string>",
"created_by": "<string>",
"description": "<string>",
"id": "<string>",
"last_updated_by": "<string>",
"name": "<string>",
"object": "<string>",
"updated_at": "<string>"
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Secret ID or name
Updated secret configuration
Description is an optional human-readable description of the secret's purpose (max 500 characters)
500Name is the new unique identifier for the secret. Can contain alphanumeric characters, underscores, hyphens, forward slashes, and periods (1-100 characters)
1 - 100ProjectID is ignored - the project is automatically determined from your authentication
Value is the new sensitive data to store securely. Updating this will replace the existing secret value
1Secret updated successfully
CreatedAt is the ISO8601 timestamp when this secret was created
CreatedBy is the identifier of the user who created this secret
Description is a human-readable description of the secret's purpose
ID is the unique identifier for this secret
LastUpdatedBy is the identifier of the user who last updated this secret
Name is the name/key of the secret
Object is the type identifier for this response (always "secret")
UpdatedAt is the ISO8601 timestamp when this secret was last updated
Was this page helpful?