Skip to content

Delete a Node

DELETE
/v1/organizations/{id}/nodes
curl --request DELETE \
--url 'https://app.caprid.com/v1/organizations/4/nodes?url=https%3A%2F%2Fexample.com' \
--header 'Authorization: Bearer <token>'

Deletes the Node and its Node key. Its relay is refused from its next poll, and its peers drop it. To bring the relay back, enroll it again with a new Relay enrollment token.

id
required
integer

The Organization’s id, from GET /v1/organizations.

Example

4
url
required
string format: uri

The Node’s URL, as listed.

Deleted.

The request is malformed or a field is invalid. The message says which.

Media typeapplication/json
object
error
required
string

Example

{
"error": "the requested grants exceed the key's scope"
}

No valid credential. Missing, expired and revoked credentials all get the same response, and so does an API key whose trial has lapsed. An Agent token from before a claim gets a 401 too, once the claim has made the trial a person’s, with a message saying to get a new token.

Media typeapplication/json
object
error
required
string

Example

{
"error": "the requested grants exceed the key's scope"
}
WWW-Authenticate
string
Example
Bearer realm="switchboard"

Sent with an API key limited to some Namespaces, to a Namespace outside its limit, or to a route that acts on the Organization as a whole. A limited key can never create API keys.

Media typeapplication/json
object
error
required
string

Example

{
"error": "this API key is limited to the Namespaces acme-staging, and acme isn't one of them"
}

No such thing, or not yours. Another customer’s Organization or Namespace is a 404 too, so nobody can tell which ones exist.

Media typeapplication/json
object
error
required
string

Example

{
"error": "the requested grants exceed the key's scope"
}