Espacio de trabajo
Desvincular la tarjeta compartida
Desvincula la tarjeta de reserva de {workspaceId}: a partir de entonces tu tarjeta ya no paga las renovaciones de ese cliente, y una renovación fallida suspende solo ese workspace. No acepta cuerpo (un cuerpo enviado no se lee). Solo el Owner de {workspaceId}. Idempotente: si no está vinculado → 200 con changed: false. Cuando hay un cambio, el Historial del workspace registra Backup card unlinked (sin correo electrónico).
Requiere una clave de cuenta (ps_account_, creada en Perfil → API). Las claves de workspace, las claves de número y los tokens OAuth/MCP reciben 403 ACCOUNT_KEY_REQUIRED. Se envía con Cache-Control: no-store.
DELETE
/
v1
/
workspaces
/
{workspaceId}
/
shared-card
Desvincular la tarjeta compartida
curl --request DELETE \
--url https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"workspaceId": "cmh2a9z8y0002ws8example1q",
"sharedCard": {
"linked": false,
"sourceWorkspaceId": null
},
"changed": true
}
Su tarjeta de reserva deja de pagar las renovaciones de este espacio de trabajo de inmediato. Si la billetera y la tarjeta propias no cubren la próxima renovación, el espacio de trabajo se suspende. Requiere una clave de cuenta (
ps_account_) y el rol de propietario. Consulte Tarjeta compartida por espacio de trabajo.Respuesta
Desvinculada (o no estaba vinculada: changed: false)
¿Esta página le ayudó?
⌘I
Desvincular la tarjeta compartida
curl --request DELETE \
--url https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card \
--header 'x-api-key: <api-key>'import requests
url = "https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card"
headers = {"x-api-key": "<api-key>"}
response = requests.delete(url, headers=headers)
print(response.text)const options = {method: 'DELETE', headers: {'x-api-key': '<api-key>'}};
fetch('https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "DELETE",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card"
req, _ := http.NewRequest("DELETE", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.delete("https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/v1/workspaces/{workspaceId}/shared-card")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Delete.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"workspaceId": "cmh2a9z8y0002ws8example1q",
"sharedCard": {
"linked": false,
"sourceWorkspaceId": null
},
"changed": true
}