Update an endpoint

Partial update: omitted fields stay as they are. Two field-specific rules: forwardUrl omitted/null = unchanged, empty string = cleared; responseHeaders as an empty object {} = cleared.

PATCH
/api/v1/endpoints/{endpointId}
AuthorizationBearer <token>

API key in the Authorization header: Authorization: Bearer wv_live_…. Keys are created on the API keys page in the app, shown once, and scoped to your workspace. X-Api-Key: wv_live_… is accepted as a fallback for tools that can't set Authorization.

In: header

Path Parameters

endpointId*string

The endpoint id (also the capture token in its URL).

Formatuuid

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

application/problem+json

{
  "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
  "name": "string",
  "url": "string",
  "isActive": true,
  "suspendedByPlan": true,
  "createdAt": "2019-08-24T14:15:22Z",
  "lastRequestAt": "2019-08-24T14:15:22Z",
  "expiresAt": "2019-08-24T14:15:22Z",
  "storedRequestCount": 0,
  "responseStatusCode": 0,
  "responseContentType": "string",
  "responseHeaders": {
    "property1": "string",
    "property2": "string"
  },
  "responseBody": "string",
  "provider": "string",
  "forwardingEnabled": true,
  "forwardUrl": "string",
  "forwardSigning": {
    "signed": true,
    "setAt": "2019-08-24T14:15:22Z"
  },
  "verification": {
    "source": "preset",
    "scheme": "string",
    "family": "string",
    "secretLabel": "string",
    "secretSet": true,
    "secretSetAt": "2019-08-24T14:15:22Z",
    "handshakeTokenSet": true,
    "handshakeTokenNeeded": true,
    "manual": {
      "header": "string",
      "algorithm": "sha1",
      "encoding": "hex",
      "prefix": "string"
    }
  }
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}
{
  "type": "string",
  "title": "string",
  "status": 0,
  "detail": "string",
  "code": "string",
  "traceId": "string"
}

On this page