Incidents.Postmortems
Overview
Available Operations
remove - Delete Postmortem By Incident
get_by_incident - Get Postmortem By Incident
update_by_incident - Update Postmortem By Incident
remove
This endpoint is used to delete a postmortem by incident.
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.incidents.postmortems.remove(incident_id="<id>")
# Handle response
print(res)
Parameters
incident_id
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.PostmortemsDeletePostmortemByIncidentResponse
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
*/*
get_by_incident
This endpoint is used to get a postmortem by incident.
Requires
access_tokenas aBearer {{token}}in theAuthorizationheader.
Example Usage
Parameters
incident_id
str
✔️
N/A
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.PostmortemsGetPostmortemByIncidentResponse
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
*/*
update_by_incident
This endpoint is used to update a postmortem by incident.
Requires
access_tokenas aBearer {{token}}in theAuthorizationheader.
Example Usage
Parameters
incident_id
str
✔️
N/A
owner_id
Optional[str]
➖
N/A
postmortem
Optional[str]
➖
N/A
title
Optional[str]
➖
N/A
status
➖
Represents the status of a postmortem.
retries
➖
Configuration to override the default retry behavior of the client.
Response
models.PostmortemsUpdatePostmortemByIncidentResponse
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