Delete a Key
DELETEhttps://key-exchange.sandbox.splitit.com/api/v1/key/:id
Using this endpoint sets the key expiration to the current date and time, effectively disabling the key for further use. Note that this call does not return a 200 message but if you fetch your key again, you will see the new expiration date.
Request
Responses
- 400
- 404
- 500
Response Headers
Response Headers
Response Headers
Authorization: http
name: bearerAuthtype: httpin: headerscheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Delete, "https://key-exchange.sandbox.splitit.com/api/v1/key/:id");
request.Headers.Add("Authorization", "Bearer <TOKEN>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
ResponseClear