Skip to Content
Access

Update an Access rule

PATCH
/accounts/{account_id}/access-rules/{rule_id}

Authorization

headerAuthorizationBearer <token>

qlt_… Access token (kind api)

Path Parameters

account_id*string
rule_id*string

Request Body

application/json
  1. body
description?string
sources*

Who. A shorthand that creates or updates the Service's own Access rule.

destinations*array<>
Items1 <= items

Response Body

OK

application/json
  1. response
id*string
service_id?|

set when the rule belongs to a Service

description?string
sources*

Who. A shorthand that creates or updates the Service's own Access rule.

destinations*array<>
Items1 <= items
Example Request
curl -X PATCH 'https://tiltas.openpanel.sh/api/v1/accounts/string/access-rules/string' \  -H 'Content-Type: application/json' \  -d '{  "sources": {},  "destinations": [    {}  ]}'
Example Response200
{  "id": "string",  "service_id": "string",  "description": "string",  "sources": {    "everyone": true,    "members": [      "string"    ],    "groups": [      "string"    ],    "devices": [      "string"    ]  },  "destinations": [    {      "service_id": "string",      "device_id": "string",      "group_id": "string",      "subnet": "string",      "ports": [        "string"      ]    }  ]}