Revoke all PATs for the authenticated subject whose inherited issuance time
is at or before a cutoff, including descendants. Requires IAM authentication.
The cutoff only moves forward; previously revoked tokens stay revoked.
Request
POST
https://api.sourcecraft.tech/user/pats/revoke
Body
application/json
{
"issued_before": "2025-01-01T00:00:00Z"
}
|
Name |
Description |
|
issued_before |
Type: string<date-time> Inclusive inherited-issuance cutoff. Defaults to the server's current time. Example: |
Responses
200 OK
A successful response.
Body
application/json
{
"issued_before": "2025-01-01T00:00:00Z"
}
|
Name |
Description |
|
issued_before |
Type: string<date-time> Effective inclusive cutoff, which can be later than requested if an earlier Example: |
default
Both Client Errors (4xx) and Server Errors (5xx) are serialized into this scheme
Body
application/json
{
"error_code": "example",
"message": "example",
"request_id": "example",
"details": null
}
|
Name |
Description |
|
details |
Type: unknown Example: |
|
error_code |
Type: string Example: |
|
message |
Type: string Example: |
|
request_id |
Type: string Example: |