curl --request PUT \
--url https://api.dualship.run/api/v1/projects/{id}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Workspace-Id: <x-workspace-id>' \
--data '
{
"cors": {
"allow_credentials": true,
"allowed_headers": [
"<string>"
],
"allowed_methods": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"enabled": true,
"max_age": 302400
},
"log_filters": {
"masked_keywords": [
"<string>"
]
},
"logging": {
"enabled": true
},
"rate_limit": {
"burst_size": 5000,
"enabled": true,
"requests_per_min": 50000
}
}
'{
"cors": {
"allow_credentials": true,
"allowed_headers": [
"<string>"
],
"allowed_methods": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"enabled": true,
"max_age": 86400
},
"log_filters": {
"masked_keywords": [
"<string>"
]
},
"logging": {
"enabled": true
},
"rate_limit": {
"burst_size": 100,
"enabled": true,
"requests_per_min": 1000
}
}Update settings for a project (partial updates supported)
curl --request PUT \
--url https://api.dualship.run/api/v1/projects/{id}/settings \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'X-Workspace-Id: <x-workspace-id>' \
--data '
{
"cors": {
"allow_credentials": true,
"allowed_headers": [
"<string>"
],
"allowed_methods": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"enabled": true,
"max_age": 302400
},
"log_filters": {
"masked_keywords": [
"<string>"
]
},
"logging": {
"enabled": true
},
"rate_limit": {
"burst_size": 5000,
"enabled": true,
"requests_per_min": 50000
}
}
'{
"cors": {
"allow_credentials": true,
"allowed_headers": [
"<string>"
],
"allowed_methods": [
"<string>"
],
"allowed_origins": [
"<string>"
],
"enabled": true,
"max_age": 86400
},
"log_filters": {
"masked_keywords": [
"<string>"
]
},
"logging": {
"enabled": true
},
"rate_limit": {
"burst_size": 100,
"enabled": true,
"requests_per_min": 1000
}
}JWT Bearer token authentication
Workspace ID
Project ID
Settings to update
Was this page helpful?