Delete a policy rule - Spacefast Docs

Delete a policy rule

Removes one rule. Whatever it decided falls through to the next rule that matches, or to the spec’s own default.

DELETE /v1/connectors/policies/{policyRuleId}

Authorization

Authorization: Bearer <token> with an API key (sfa_ prefix), an OAuth access token, a session token, or a Space machine credential (sfm_ prefix).

OAuth 2.0 with Spacefast scopes. People use the authorization code flow; machines use client credentials.

Scopes:

Path parameters

Query parameters

Responses

200 Response for status 200

Removing a policy rule returns no resource body.

default

Problem details (RFC 9457). Any 4xx/5xx response is one application/problem+json document.

Try it

Server

Base URL: https://api.spacefast.com Custom base URL: Overrides the selected server when set.

Authorization

Bearer token - Remember on this device - Include my values in samples

Parameters

Send

Request

cURL

curl -X DELETE "https://api.spacefast.com/v1/connectors/policies/string" \
  -H "Authorization: Bearer YOUR_TOKEN"

JavaScript

const response = await fetch("https://api.spacefast.com/v1/connectors/policies/string", {
  method: "DELETE",
  headers: {
    "Authorization": "Bearer YOUR_TOKEN"
  }
});

Python

import requests

response = requests.delete(
    "https://api.spacefast.com/v1/connectors/policies/string",
    headers={
        "Authorization": "Bearer YOUR_TOKEN"
    },
)

Response

200 default

{
  "$schema": "http://example.com",
  "data": null
}
{
  "$schema": "http://example.com",
  "type": "string",
  "title": "string",
  "status": -9007199254740991,
  "detail": "string",
  "code": "string",
  "pointer": "string",
  "details": {
    "property1": null,
    "property2": null
  },
  "suggestions": [  
    "string"  
  ],
  "next": [  
    "string"  
  ],
  "requestId": "string"
}