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

Path Parameters

ws_id
string
required

The workspace id

Example:

"default"

id
string
required

Body

application/json
id
string
name
string | null
description
string | null
enabled
boolean
default:true
request
object
retry
object
events
string[]
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

id
string
name
string | null
description
string | null
enabled
boolean
default:true
request
object
retry
object
events
string[]
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