Skip to main content
PUT
/
workspaces
/
{ws_id}
/
source
/
{id}
Update a source
curl --request PUT \
  --url http://localhost:8080/workspaces/{ws_id}/source/{id} \
  --header 'Content-Type: application/json' \
  --data '{
  "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
  }
}'
{
  "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
  },
  "created_at": 123,
  "updated_at": 123
}

Path Parameters

ws_id
string
required

The workspace id

Example:

"default"

id
string
required

Body

application/json
path
string
required
methods
enum<string>[]
required
Minimum length: 1
id
string
name
string | null
enabled
boolean
default:true
async
boolean
default:false

Whether to ingest events asynchronously through the queue

response
object | null
metadata
object
rate_limit
object | null

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

Response

200 - application/json

OK

path
string
required
methods
enum<string>[]
required
Minimum length: 1
id
string
name
string | null
enabled
boolean
default:true
async
boolean
default:false

Whether to ingest events asynchronously through the queue

response
object | null
metadata
object
rate_limit
object | null

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

created_at
integer
updated_at
integer