Skip to content
Get started

Update

POST/platform

Updates platform details (creates if not exists)

Body ParametersJSONExpand Collapse
displayName: string

Display name for the platform

ReturnsExpand Collapse
data: object { created, displayName, workspaceId, modified }

Platform object

created: string

ISO 8601 timestamp when the platform was created

formatdate-time
displayName: string

Display name for the platform

workspaceId: string

Workspace ID this platform belongs to

modified: optional string

ISO 8601 timestamp when the platform was last modified

formatdate-time

Update

curl https://api.us-west-2.fragment.dev/platform \
    -H 'Content-Type: application/json' \
    -d '{
          "displayName": "Acme Corp"
        }'
{
  "data": {
    "created": "2024-01-13T00:00:00Z",
    "displayName": "Acme Corp",
    "workspaceId": "ws_1234567890",
    "modified": "2024-01-14T00:00:00Z"
  }
}
Returns Examples
{
  "data": {
    "created": "2024-01-13T00:00:00Z",
    "displayName": "Acme Corp",
    "workspaceId": "ws_1234567890",
    "modified": "2024-01-14T00:00:00Z"
  }
}