Skip to main content
PUT
/
workspaces
/
{ws_id}
/
source
/
{id}
Update a source
curl --request PUT \
  --url http://localhost:9601/workspaces/{ws_id}/source/{id} \
  --header 'Content-Type: application/json' \
  --data '
{
  "config": {
    "http": {
      "methods": [
        "POST"
      ]
    }
  },
  "id": "<string>",
  "name": "<string>",
  "enabled": true,
  "type": "http",
  "async": false,
  "metadata": {},
  "rate_limit": {
    "quota": 1,
    "period": 2
  }
}
'
{
  "config": {
    "http": {
      "methods": [
        "POST"
      ]
    }
  },
  "id": "<string>",
  "name": "<string>",
  "enabled": true,
  "type": "http",
  "async": false,
  "metadata": {},
  "rate_limit": {
    "quota": 1,
    "period": 2
  },
  "created_at": 123,
  "updated_at": 123
}

Path Parameters

id
string
required
ws_id
string
required

The workspace id

Example:

"default"

Body

application/json
config
object
required
id
string
name
string | null
enabled
boolean
default:true
type
enum<string>
default:http
Available options:
http
async
boolean
default:false

Whether to ingest events asynchronously through the queue

metadata
object
rate_limit
object

The rate limit that uses GCRA algorithm (a variant of the leaky bucket algorithm that supports bursts).

Response

200 - application/json

OK

config
object
required
id
string
name
string | null
enabled
boolean
default:true
type
enum<string>
default:http
Available options:
http
async
boolean
default:false

Whether to ingest events asynchronously through the queue

metadata
object
rate_limit
object

The rate limit that uses GCRA algorithm (a variant of the leaky bucket algorithm that supports bursts).

created_at
integer
updated_at
integer