Postmortems
Overview
Available Operations
get_all
This endpoint is used to get all postmortems.
Requires
access_tokenas aBearer {{token}}in theAuthorizationheader.
Example Usage
from squadcast import SquadcastSDK
with SquadcastSDK(
refresh_token_auth="<YOUR_REFRESH_TOKEN_AUTH_HERE>",
) as squadcast_sdk:
res = squadcast_sdk.postmortems.get_all(from_date="<value>", to_date="<value>", owner_id="<id>", limit=221553)
# Handle response
print(res)
Parameters
from_date
str
✔️
Provide date in RFC3339 format
to_date
str
✔️
Provide date in RFC3339 format
owner_id
str
✔️
Here owner_id represents team_id
limit
int
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
create
This endpoint is used to create a postmortem.
Requires
access_tokenas aBearer {{token}}in theAuthorizationheader.
Example Usage
Parameters
incident_id
str
✔️
N/A
owner_id
str
✔️
N/A
title
str
✔️
N/A
postmortem
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
Errors
errors.BadRequestError
400
application/json
errors.UnauthorizedError
401
application/json
errors.PaymentRequiredError
402
application/json
errors.ForbiddenError
403
application/json
errors.NotFoundError
404
application/json
errors.ConflictError
409
application/json
errors.UnprocessableEntityError
422
application/json
errors.InternalServerError
500
application/json
errors.BadGatewayError
502
application/json
errors.ServiceUnavailableError
503
application/json
errors.GatewayTimeoutError
504
application/json
errors.SDKDefaultError
4XX, 5XX
*/*
Last updated