Skip to content
Skip to Content
Coder Docs

Update appearance

PUT
/api/v2/appearance

Authorization

CoderSessionToken
headerCoder-Session-Token<token>

Request Body

Update appearance request

application/json
  1. body
announcement_banners?array<>
application_name?string
codernauts_enabled?boolean
logo_url?string
service_banner?

Deprecated: ServiceBanner has been replaced by AnnouncementBanners.

Response Body

OK

application/json
  1. response
announcement_banners?array<>
application_name?string
codernauts_enabled?boolean
logo_url?string
service_banner?

Deprecated: ServiceBanner has been replaced by AnnouncementBanners.

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

curl -X PUT \	"$CODER_URL/api/v2/appearance" \	-H "Coder-Session-Token: $CODER_SESSION_TOKEN" \	-H "Content-Type: application/json" \	-d '{  "announcement_banners": [    {      "background_color": "string",      "enabled": true,      "message": "string"    }  ],  "application_name": "string",  "codernauts_enabled": true}'
Example Response200
{  "announcement_banners": [    {      "background_color": "string",      "enabled": true,      "message": "string"    }  ],  "application_name": "string",  "codernauts_enabled": true,  "logo_url": "string",  "service_banner": {    "background_color": "string",    "enabled": true,    "message": "string"  }}