For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Dashboard
User GuideDeveloper GuidesAPI Reference
User GuideDeveloper GuidesAPI Reference
    • Overview
  • Runtype API
      • GETList products
      • POSTCreate product
      • POSTAssemble product from FPO
      • GETGet product details
      • PUTUpdate product
      • DELDelete product
      • POSTAdd capability to product
      • PUTUpdate capability
      • DELRemove capability
      • GETPreview cleanup resources
      • GETGet product configuration summary
      • GETList surfaces
      • POSTCreate surface
      • GETGet surface details
      • PUTUpdate surface
      • DELDelete surface
      • POSTAdd item to surface
      • PUTUpdate surface item
      • DELRemove surface item
      • POSTCreate surface API key
      • DELDelete surface API key
      • GETReveal development surface key
      • GETList schedules for surface
      • POSTCreate schedule for surface
      • GETGet schedule details
      • PUTUpdate schedule
      • DELDelete schedule
      • POSTPause schedule
      • POSTResume schedule
      • POSTRun schedule immediately
Dashboard
LogoLogo
Runtype APIProducts

Update surface

PUT
/v1/products/:id/surfaces/:surfaceId
PUT
/v1/products/:id/surfaces/:surfaceId
$curl -X PUT https://api.runtype.com/v1/products/id/surfaces/surfaceId \
> -H "Authorization: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{}'
1{
2 "createdAt": "2024-05-20T10:15:30Z",
3 "environment": "production",
4 "id": "a1b2c3d4-e5f6-7890-ab12-cd34ef56gh78",
5 "name": "User Dashboard Surface",
6 "productId": "prod-9876543210",
7 "status": "active",
8 "type": "web",
9 "updatedAt": "2024-06-01T08:45:00Z"
10}

Update an existing surface. Supports partial updates with shallow-merge for behavior.

Was this page helpful?
Previous

Delete surface

Next
Built with

Authentication

AuthorizationBearer
API key or Clerk session token

Path parameters

idstringRequired
surfaceIdstringRequired

Request

This endpoint expects an object.
behavioranyOptional
configanyOptional
environmentenumOptional
Allowed values:
inboundmap from strings to anyOptional
namestringOptional1-255 characters
outboundmap from strings to anyOptional
statusenumOptional
Allowed values:

Response

Surface updated
createdAtstring
environmentstring
idstring
namestring
productIdstring
statusstring
typestring
updatedAtstring
behaviorany
inboundany
outboundany

Errors

400
Bad Request Error
401
Unauthorized Error
402
Payment Required Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
500
Internal Server Error