Users

Archive User

Soft delete (archive) a User account. This action is reversible.

Authorization

Public key Secret key
x-fngs-public-key<token>

In: header

x-fngs-secret-key<token>

In: header

Path Parameters

userId*string

Unique identifier of the User to archive.

Formatuuid

Request Body

application/json

PATCH /v0/users/:userId/archive Request body

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

PATCH
/v0/users/{userId}/archive
curl -X PATCH "https://example.com/v0/users/123e4567-e89b-12d3-a456-426614174000/archive" \  -H "Content-Type: application/json" \  -d '{}'
{  "status": "success",  "data": {    "success": true,    "archived": true  }}