Stop sharing a service
curl --request DELETE \
--url https://my.server.express/api/v1/user/teams/{id}/services/{serviceId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/user/teams/{id}/services/{serviceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/user/teams/{id}/services/{serviceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Teams
Stop sharing a service
The service owner or a team OWNER/ADMIN may unshare. Nothing is cancelled; the service goes back to being visible only
to the account that bought it. Writes a TEAM_SERVICE_UNSHARED audit entry and sends a team.service_shared webhook
(shared: false) to the team owner.
DELETE
/
v1
/
user
/
teams
/
{id}
/
services
/
{serviceId}
Stop sharing a service
curl --request DELETE \
--url https://my.server.express/api/v1/user/teams/{id}/services/{serviceId} \
--header 'Authorization: Bearer <token>'const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
fetch('https://my.server.express/api/v1/user/teams/{id}/services/{serviceId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://my.server.express/api/v1/user/teams/{id}/services/{serviceId}"
headers = {"Authorization": "Bearer <token>"}
response = requests.delete(url, headers=headers)
print(response.text){
"success": true,
"data": {
"id": "<string>",
"message": "<string>"
}
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}{
"success": false,
"error": "<string>"
}Authorizations
Session access token (JWT) from POST /v1/auth/login or /v1/auth/refresh. A session satisfies every API scope.