Skip to content
Start here

Mitigations

List abuse report mitigations
abuse_reports.mitigations.list(strreport_id, MitigationListParams**kwargs) -> SyncV4PagePagination[Optional[MitigationListResponse]]
GET/accounts/{account_id}/abuse-reports/{report_id}/mitigations
Request review on mitigations
abuse_reports.mitigations.review(strreport_id, MitigationReviewParams**kwargs) -> SyncSinglePage[MitigationReviewResponse]
POST/accounts/{account_id}/abuse-reports/{report_id}/mitigations/appeal
ModelsExpand Collapse
class MitigationListResponse:
mitigations: List[Mitigation]
id: str

ID of remediation.

effective_date: str

Date when the mitigation will become active. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html)

entity_id: str
entity_type: Literal["url_pattern", "account", "zone", "custom_expression"]

The type of entity targeted by a mitigation.

One of the following:
"url_pattern"
"account"
"zone"
"custom_expression"
status: Literal["pending", "active", "in_review", 2 more]

The status of a mitigation

One of the following:
"pending"
"active"
"in_review"
"cancelled"
"removed"
type: str

The type of mitigation applied to a reported entity.

class MitigationReviewResponse:
id: str

ID of remediation.

effective_date: str

Date when the mitigation will become active. Time in RFC 3339 format (https://www.rfc-editor.org/rfc/rfc3339.html)

entity_id: str
entity_type: Literal["url_pattern", "account", "zone", "custom_expression"]

The type of entity targeted by a mitigation.

One of the following:
"url_pattern"
"account"
"zone"
"custom_expression"
status: Literal["pending", "active", "in_review", 2 more]

The status of a mitigation

One of the following:
"pending"
"active"
"in_review"
"cancelled"
"removed"
type: str

The type of mitigation applied to a reported entity.