curl --request POST \
--url https://api.dualship.run/api/v1/projects/{id}/secrets/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Workspace-Id: <x-workspace-id>' \
--data '
{
"secrets": [
{
"key": "<string>",
"value": "<string>",
"is_secret": true
}
]
}
'{
"secrets": [
{
"is_secret": true,
"key": "API_KEY",
"value": ""
}
]
}Create multiple secrets at once
curl --request POST \
--url https://api.dualship.run/api/v1/projects/{id}/secrets/bulk \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Workspace-Id: <x-workspace-id>' \
--data '
{
"secrets": [
{
"key": "<string>",
"value": "<string>",
"is_secret": true
}
]
}
'{
"secrets": [
{
"is_secret": true,
"key": "API_KEY",
"value": ""
}
]
}JWT Bearer token authentication
Workspace ID
Project ID
Secrets to create
1Show child attributes
Secrets created
List of project secrets
Show child attributes
Was this page helpful?