Connectors

Change a policy rule's action

Replaces what a rule does. A rule's pattern and owner are fixed — delete it and add the one you meant.

patch/v1/connectors/policies/{policyRuleId}

Request

  • Base URL: https://api.spacefast.com
  • URL: https://api.spacefast.com/v1/connectors/policies/{policyRuleId}
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://api.spacefast.com/v1/auth/oauth2/authorize, token URL https://api.spacefast.com/v1/auth/oauth2/token; client credentials, token URL https://api.spacefast.com/v1/auth/oauth2/token, scopes: connectors:write)

Path parameters

policyRuleIdstring required

Policy rule id.

Query parameters

teamstring

Team id or slug to act for. Required only when the credential could act for more than one team.

Request body

action'approve' | 'require_approval' | 'block' required

Replacement action. A rule's pattern and owner are fixed — delete and re-add.

Response

Response for status 200

$schemastring uri

Canonical JSON Schema URL for this response body. The server also sends it in the Link: rel="describedby" response header.

Changes

No recorded changes to this operation across all 1 revision of this API.