PUT
/
v1
/
endpoints
/
{endpointId}
curl -X PUT https://qstash.upstash.io/v1/endpoints/:endpointId \
  -H "Authorization: Bearer <token>" \
  -d { "url" : "https://www.google.com" }
{
  "endpointId": "ept_6j7BNZus3ZyPy6P7QtLUMCC3Rq7h",
  "url": "https://www.google.com",
  "topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA"
}
This will only apply to newly created messages. All messages published before this endpoint was updated will still use the old url.

Request

endpointId
string
required
The id of the endpoint

Request Parameters

url
string
required
The new url of the endpoint

Response

topicId
string
required
The id of the topic this endpoint subscribes to.Either topicId or topicName must be set
topicName
string
required
The name of the topic this endpoint subscribes to.Either topicId or topicName must be set
url
string
required
The url where all requests will be sent to.
curl -X PUT https://qstash.upstash.io/v1/endpoints/:endpointId \
  -H "Authorization: Bearer <token>" \
  -d { "url" : "https://www.google.com" }
{
  "endpointId": "ept_6j7BNZus3ZyPy6P7QtLUMCC3Rq7h",
  "url": "https://www.google.com",
  "topicId": "tpc_7EfEryZiheEKzpMuvjYdhhhbNNJA"
}