PortSharing

Upsert workspace agent port share

Changed on
post/api/v2/workspaces/{workspace}/port-share

Request

  • Base URL
    / (relative, and the document was published on a file host, not at the API’s origin)
  • URL
    /api/v2/workspaces/{workspace}/port-share
  • Auth
    API key in header Coder-Session-Token

Path parameters

workspacestring uuid required

Workspace ID

Request body

agent_namestring
portinteger
protocol'http' | 'https'
share_level'owner' | 'authenticated' | 'organization' | 'public'

Response

OK

agent_namestring
portinteger
protocol'http' | 'https'
share_level'owner' | 'authenticated' | 'organization' | 'public'
workspace_idstring uuid

Changes