Time Dilation

Download Spec

Create a new time-dilation instance for a project

post /projects/{projectId}/timeDilation

Creates a new time-dilation instance for a specific project. This instance affects the perceived timeline for the code files in the project.

id

string

projectId

string

state

string

Enum
  • ACTIVE
  • INACTIVE

dilationFactor

number

creationDate

string

date-time

Request

{
  "dilationFactor": 2.0
}

Response

ExamplesSchema

Time-dilation instance created

{
  "id": "td123",
  "projectId": "p456",
  "state": "ACTIVE",
  "dilationFactor": 2.0,
  "creationDate": "2023-07-24T18:00:00Z"
}

Get a time-dilation instance by ID

get /projects/{projectId}/timeDilation/{timeDilationId}

Retrieves information about a specific time-dilation instance.

projectId

string

required

timeDilationId

string

required

Response

ExamplesSchema

A time-dilation instance

{
  "id": "td123",
  "projectId": "p456",
  "state": "ACTIVE",
  "dilationFactor": 2.0,
  "creationDate": "2023-07-24T18:00:00Z"
}

Delete a time-dilation instance by ID

delete /projects/{projectId}/timeDilation/{timeDilationId}

Deletes a specific time-dilation instance.

projectId

string

required

timeDilationId

string

required

Response

ExamplesSchema

Time-dilation instance deleted

Empty response

Was this page helpful?