curl --request POST \
--url https://api.edgee.app/v1/projects/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"slug": "my-project",
"description": "This is my project",
"log_severity": "INFO",
"edgee_behind_proxy_cache": false,
"force_https": true,
"cache": false,
"override_cache": [
{
"path": "<string>",
"regex": true,
"ttl": 123,
"swr": 123,
"pass": true,
"rank": 123,
"conditions": {
"request_cookies": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_query_params": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_methods": [
"<string>"
],
"response_status": [
123
],
"response_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
}
}
}
],
"override_cache_enabled": false,
"cookie_name": "edgee",
"cookie_domain": "<string>",
"proxy_only": false,
"proxy_only_path_regex": "<string>",
"inject_sdk": false,
"inject_sdk_position": "append",
"cookieless": false,
"autocapture": {
"pageview": false,
"spa_pageview": false,
"engagement": false,
"click": false,
"form": false,
"scroll": false
},
"enforce_no_store_policy": false,
"trusted_ips": [],
"password_protection": false,
"blocked_ips": [],
"cookie_whitelist": [],
"forwarded_headers": [],
"rate_limiting": [],
"rate_limiting_enabled": false
}'
{
"object": "project",
"id": "<string>",
"organization_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"slug": "my-project",
"description": "This is my project",
"avatar_url": "<string>",
"created_at": "2022-03-01T00:00:00Z",
"updated_at": "2022-03-01T00:00:00Z",
"external_project_url": "https://my-project.com",
"log_severity": "INFO",
"edgee_behind_proxy_cache": false,
"force_https": true,
"cache": false,
"override_cache": [
{
"path": "<string>",
"regex": true,
"ttl": 123,
"swr": 123,
"pass": true,
"rank": 123,
"conditions": {
"request_cookies": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_query_params": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_methods": [
"<string>"
],
"response_status": [
123
],
"response_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
}
}
}
],
"override_cache_enabled": false,
"cookie_name": "edgee",
"cookie_domain": "<string>",
"proxy_only": false,
"proxy_only_path_regex": "<string>",
"inject_sdk": false,
"inject_sdk_position": "append",
"cookieless": false,
"autocapture": {
"pageview": false,
"spa_pageview": false,
"engagement": false,
"click": false,
"form": false,
"scroll": false
},
"enforce_no_store_policy": false,
"trusted_ips": [],
"password_protection": false,
"blocked_ips": [],
"cookie_whitelist": [],
"forwarded_headers": [],
"rate_limiting": [],
"rate_limiting_enabled": false
}
Updates an existing Project.
curl --request POST \
--url https://api.edgee.app/v1/projects/{id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"slug": "my-project",
"description": "This is my project",
"log_severity": "INFO",
"edgee_behind_proxy_cache": false,
"force_https": true,
"cache": false,
"override_cache": [
{
"path": "<string>",
"regex": true,
"ttl": 123,
"swr": 123,
"pass": true,
"rank": 123,
"conditions": {
"request_cookies": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_query_params": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_methods": [
"<string>"
],
"response_status": [
123
],
"response_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
}
}
}
],
"override_cache_enabled": false,
"cookie_name": "edgee",
"cookie_domain": "<string>",
"proxy_only": false,
"proxy_only_path_regex": "<string>",
"inject_sdk": false,
"inject_sdk_position": "append",
"cookieless": false,
"autocapture": {
"pageview": false,
"spa_pageview": false,
"engagement": false,
"click": false,
"form": false,
"scroll": false
},
"enforce_no_store_policy": false,
"trusted_ips": [],
"password_protection": false,
"blocked_ips": [],
"cookie_whitelist": [],
"forwarded_headers": [],
"rate_limiting": [],
"rate_limiting_enabled": false
}'
{
"object": "project",
"id": "<string>",
"organization_id": "d290f1ee-6c54-4b01-90e6-d701748f0851",
"slug": "my-project",
"description": "This is my project",
"avatar_url": "<string>",
"created_at": "2022-03-01T00:00:00Z",
"updated_at": "2022-03-01T00:00:00Z",
"external_project_url": "https://my-project.com",
"log_severity": "INFO",
"edgee_behind_proxy_cache": false,
"force_https": true,
"cache": false,
"override_cache": [
{
"path": "<string>",
"regex": true,
"ttl": 123,
"swr": 123,
"pass": true,
"rank": 123,
"conditions": {
"request_cookies": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_query_params": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
},
"request_methods": [
"<string>"
],
"response_status": [
123
],
"response_headers": {
"present": [
"<string>"
],
"absent": [
"<string>"
],
"values": {}
}
}
}
],
"override_cache_enabled": false,
"cookie_name": "edgee",
"cookie_domain": "<string>",
"proxy_only": false,
"proxy_only_path_regex": "<string>",
"inject_sdk": false,
"inject_sdk_position": "append",
"cookieless": false,
"autocapture": {
"pageview": false,
"spa_pageview": false,
"engagement": false,
"click": false,
"form": false,
"scroll": false
},
"enforce_no_store_policy": false,
"trusted_ips": [],
"password_protection": false,
"blocked_ips": [],
"cookie_whitelist": [],
"forwarded_headers": [],
"rate_limiting": [],
"rate_limiting_enabled": false
}
A Project is a unique identifier that you can use to manage and organize your work. Each project belongs to an organization.
The updated Project
A Project is a unique identifier that you can use to manage and organize your work. Each project belongs to an organization.
Was this page helpful?