Skip to main content
DELETE
/
api
/
v1
/
accounts
/
{accountId}
/
projects
/
{projectId}
/
security-groups
/
{securityGroupId}
Delete a security group
curl --request DELETE \
  --url https://api.aion.xyz/api/v1/accounts/{accountId}/projects/{projectId}/security-groups/{securityGroupId} \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "message": "Security group deleted successfully"
}

Authorizations

Authorization
string
header
required

JWT token from authentication service

Headers

x-account-id
string

Account ID from authentication (must match path accountId)

x-user-id
string

User ID performing the action

X-Request-ID
string

Unique request ID for tracing

Path Parameters

accountId
string
required

Account external ID

Pattern: ^acct-[a-zA-Z0-9]+-v1$
projectId
string
required

Project external ID

Pattern: ^proj-[a-zA-Z0-9]+-v1$
securityGroupId
string
required

Security group external ID

Pattern: ^sg-[a-zA-Z0-9]+-v1$

Response

Security group deleted successfully

success
boolean
Example:

true

message
string
Example:

"Security group deleted successfully"