Skip to content
Skip to Content
Coder Docs

Patch workspace agent app status

Deprecated

PATCH
/api/v2/workspaceagents/me/app-status

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

app status

application/json
  1. body
app_slug?string
icon?string

Deprecated: this field is unused and will be removed in a future version.

message?string
needs_user_attention?boolean

Deprecated: this field is unused and will be removed in a future version.

state?codersdk.WorkspaceAppStatusState
Value in"working""idle""complete""failure"
uri?string

Only http, https, and file URIs are kept; others are dropped.

Response Body

OK

application/json
  1. response
detail?string

Detail is a debug message that provides further insight into why the action failed. This information can be technical and a regular golang err.Error() text.

  • "database: too many open connections"
  • "stat: too many open files"
message?string

Message is an actionable message that depicts actions the request took. These messages should be fully formed sentences with proper punctuation. Examples:

  • "A user has been created."
  • "Failed to create a user."
validations?array<>

Validations are form field-specific friendly error messages. They will be shown on a form field in the UI. These can also be used to add additional context if there is a set of errors in the primary 'Message'.

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

curl -X PATCH \	"$CODER_URL/api/v2/workspaceagents/me/app-status" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "app_slug": "string",  "icon": "string",  "message": "string"}'
Example Response200
{  "detail": "string",  "message": "string",  "validations": [    {      "detail": "string",      "field": "string"    }  ]}