Skip to main content
POST
/
workspaces
/
{ws_id}
/
config
/
sync
Sync declarative configuration
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": {}
        }
      ]
    }
  ]
}'

Path Parameters

ws_id
string
required

The workspace id

Example:

"default"

Body

endpoints
object[]
sources
object[]

Response

200

OK