Documentation menu

Project Environment Events

2 operations.

MethodEndpointDescription
GET/api/v1/projects/{projectId}/environments/{environmentId}/eventsList retained Environment events
POST/api/v1/projects/{projectId}/environments/{environmentId}/events/rebaselineCreate an Environment event-tail baseline

List retained Environment events

GET/api/v1/projects/{projectId}/environments/{environmentId}/events

Read the ordered event history retained for a Project Environment using an opaque cursor. Omit cursor for the initial read and persist pagination.resumeCursor after every response. When hasMore is true, use pagination.nextCursor to retrieve the remaining events from that same pull. Empty pages still return a valid resume cursor for the requested position.

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to List retained Environment events.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to List retained Environment events.

query

NameTypeRequiredDescription
cursorstringoptionalOpaque cursor returned by the previous page; omit it to read the first page. Applies to List retained Environment events.
limitintegeroptionalSets the maximum number of resources returned in this page. Applies to List retained Environment events.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • events (required): array<object>
  • pagination (required): object
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
409Request conflicts with current state of the resource, including safe deployment conflict classifications.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object

Create an Environment event-tail baseline

POST/api/v1/projects/{projectId}/environments/{environmentId}/events/rebaseline

Parameters

path

NameTypeRequiredDescription
projectIdstringrequiredIdentifies the Project that owns the addressed resource. Applies to Create an Environment event-tail baseline.
environmentIdstringrequiredIdentifies the Project environment addressed by the operation. Applies to Create an Environment event-tail baseline.

Responses

StatusDescriptionBody
200Response for status 200
application/json
object
  • checkpointId (required): integer
  • checkpointGeneration (required): integer
  • baseline (required): object
  • resumeCursor (required): string
400The request is malformed or cannot be processed.
application/json
PublicApiError
  • error (required): object
401Authentication failed. Possible reasons: - Authorization header is not provided - Invalid API key - Session expired
application/json
PublicApiError
  • error (required): object
403Access denied. The authenticated user does not have permission to perform this action.
application/json
PublicApiError
  • error (required): object
404Resource not found.
application/json
PublicApiError
  • error (required): object
409Request conflicts with current state of the resource, including safe deployment conflict classifications.
application/json
PublicApiError
  • error (required): object
422Request validation failed. Check the request body, query parameters, or path parameters.
application/json
PublicApiError
  • error (required): object
500The server could not complete the request.
application/json
PublicApiError
  • error (required): object