Skip to content
Skip to Content
Coder Docs

Delete workspace agent port share

DELETE
/api/v2/workspaces/{workspace}/port-share

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Path Parameters

workspace*string

Workspace ID

Formatuuid

Request Body

Delete port sharing level request

application/json
  1. body
agent_name?string
port?integer

Response Body

OK

The samples read CODER_URL and CODER_SESSION_TOKEN: set up your environment.

curl -X DELETE \	"$CODER_URL/api/v2/workspaces/{workspace}/port-share" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "agent_name": "string",  "port": 0}'
Example Response200
Empty