POST
/
workspaceagents
/
me
/
log-source
curl --request POST \
  --url https://cloud.local.wirtual.dev/api/v2/workspaceagents/me/log-source \
  --header 'Content-Type: application/json' \
  --header 'Wirtual-Session-Token: <api-key>' \
  --data '{
  "display_name": "<string>",
  "icon": "<string>",
  "id": "<string>"
}'
{
  "created_at": "2023-11-07T05:31:56Z",
  "display_name": "<string>",
  "icon": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "workspace_agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}

Authorizations

Wirtual-Session-Token
string
header
required

Body

application/json
Log source request
display_name
string
icon
string
id
string

ID is a unique identifier for the log source. It is scoped to a workspace agent, and can be statically defined inside code to prevent duplicate sources from being created for the same agent.

Response

200 - application/json
OK
created_at
string
display_name
string
icon
string
id
string
workspace_agent_id
string