Path Parameters
The workspace id
Example:
"default"
Response
200
OK
curl --request POST \
--url http://localhost:8080/workspaces/{ws_id}/config/sync \
--header 'Content-Type: application/json' \
--data '{
"endpoints": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"request": {
"method": "POST",
"headers": null,
"timeout": 10000
},
"retry": {
"strategy": "fixed",
"config": {
"attempts": [
0,
60,
3600
]
}
},
"events": [],
"metadata": {},
"rate_limit": {
"quota": 1,
"period": 2
},
"plugins": [
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
]
}
],
"sources": [
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"path": "<string>",
"methods": [
"GET"
],
"async": false,
"response": {
"code": 399,
"content_type": "<string>",
"body": "<string>"
},
"metadata": {},
"rate_limit": {
"quota": 1,
"period": 2
},
"plugins": [
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
]
}
]
}'
curl --request POST \
--url http://localhost:8080/workspaces/{ws_id}/config/sync \
--header 'Content-Type: application/json' \
--data '{
"endpoints": [
{
"id": "<string>",
"name": "<string>",
"description": "<string>",
"enabled": true,
"request": {
"method": "POST",
"headers": null,
"timeout": 10000
},
"retry": {
"strategy": "fixed",
"config": {
"attempts": [
0,
60,
3600
]
}
},
"events": [],
"metadata": {},
"rate_limit": {
"quota": 1,
"period": 2
},
"plugins": [
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
]
}
],
"sources": [
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"path": "<string>",
"methods": [
"GET"
],
"async": false,
"response": {
"code": 399,
"content_type": "<string>",
"body": "<string>"
},
"metadata": {},
"rate_limit": {
"quota": 1,
"period": 2
},
"plugins": [
{
"id": "<string>",
"name": "<string>",
"enabled": true,
"endpoint_id": "<string>",
"source_id": "<string>",
"config": {},
"metadata": {}
}
]
}
]
}'
The workspace id
"default"
OK