GoodMemGoodMem
ReferenceAPIREST APIUsers

Revoke a human-user enrollment

DELETE /v1/users/{userId}/enrollments/{enrollmentId}: Permanently revokes one outstanding enrollment after requiring MANAGE_USER_ENROLLMENT on its target user.

Permanently revokes one outstanding enrollment after requiring MANAGE_USER_ENROLLMENT on its target user. Repeating an authorized revocation succeeds without replacing its original audit provenance. Consumed enrollments cannot be revoked.

DELETE
/v1/users/{userId}/enrollments/{enrollmentId}
x-api-key<token>

In: header

Path Parameters

userIdstring

Human-user UUID

enrollmentIdstring

Enrollment UUID

Header Parameters

GoodMem-Timeout-Ms?integer

Optional waiting budget in milliseconds, measured from REST servlet ingress and shared across all internal gRPC calls. Supply one decimal integer from 1 to 86400000. Omission adds no deadline. Existing shorter deadlines still apply. Expiry returns HTTP 504 before streaming starts; after streaming starts, no successful completion event is sent. Use SSE or opt into GoodMem-Stream-Terminal for an explicit terminal outcome. Retrieval work is cooperatively cancelled. An accepted mutation may still commit after timeout or disconnect; a failed response does not imply rollback.

Formatint64
Range1 <= value <= 86400000

Response Body

curl -X DELETE "https://your-goodmem-server.example.com/v1/users/70e025f6-76ca-4cbe-b8fc-7dab8e84590a/enrollments/0198b9f4-c42f-7ae3-8c56-44d827ea03bd" \  -H "GoodMem-Timeout-Ms: 30000"
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty
Empty