Delete workspace agent port share
DELETE
CoderSessionTokenheader
Coder-Session-Token<token>workspace*stringWorkspace ID
Format
uuidDelete port sharing level request
application/json- body
agent_name?stringport?integerThe 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