Overview
- Introduction
- Authentication
- Examples
Endpoints
- Identities
- Universal Auth
- Organizations
- Projects
- Project Users
- Project Identities
- Project Roles
- Environments
- Folders
- Secret Tags
- Secrets
- Secret Imports
- Identity Specific Privilege
- Integrations
- Service Tokens
- Audit Logs
- Certificate Authorities
- Certificates
Secrets
Bulk Update
Update many secrets
PATCH
/
api
/
v3
/
secrets
/
batch
/
raw
Copy
Ask AI
curl --request PATCH \
--url https://app.infisical.com/api/v3/secrets/batch/raw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"projectSlug": "<string>",
"environment": "<string>",
"secretPath": "/",
"secrets": [
{
"secretKey": "<string>",
"secretValue": "<string>",
"secretComment": "<string>",
"skipMultilineEncoding": true
}
]
}'
Copy
Ask AI
{
"secrets": [
{
"id": "<string>",
"_id": "<string>",
"workspace": "<string>",
"environment": "<string>",
"version": 123,
"type": "<string>",
"secretKey": "<string>",
"secretValue": "<string>",
"secretComment": "<string>"
}
]
}
This endpoint requires you to disable end-to-end encryption. For more information, you should consult this note.
Authorizations
An access token in Infisical
Body
application/json
Response
200 - application/json
Default Response
The response is of type object
.
Was this page helpful?
Copy
Ask AI
curl --request PATCH \
--url https://app.infisical.com/api/v3/secrets/batch/raw \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"projectSlug": "<string>",
"environment": "<string>",
"secretPath": "/",
"secrets": [
{
"secretKey": "<string>",
"secretValue": "<string>",
"secretComment": "<string>",
"skipMultilineEncoding": true
}
]
}'
Copy
Ask AI
{
"secrets": [
{
"id": "<string>",
"_id": "<string>",
"workspace": "<string>",
"environment": "<string>",
"version": 123,
"type": "<string>",
"secretKey": "<string>",
"secretValue": "<string>",
"secretComment": "<string>"
}
]
}
Assistant
Responses are generated using AI and may contain mistakes.