---
updatedAt: 2025-11-11T23:14:49.000Z
agentTools:
  projectIndex: https://developers.fortresstrust.com/llms.txt
---

# Deactivates or activates identity (Auth)

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Fortress.Identity Api",
    "version": "1.0"
  },
  "servers": [
    {
      "url": "https://api.sandbox.fortressapi.com/"
    }
  ],
  "paths": {
    "/api/compliance/v1/identities/{identityId}": {
      "patch": {
        "tags": [
          "Identities"
        ],
        "summary": "Deactivates or activates identity (Auth)",
        "parameters": [
          {
            "name": "identityId",
            "in": "path",
            "description": "An id of the identity to deactivate/activate",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "requestBody": {
          "description": "The <see cref=\"T:Fortress.Identity.Application.Models.UserIdentities.IdentityUpdateStatusModel\"></see> data",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityUpdateStatusModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityUpdateStatusModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/IdentityUpdateStatusModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Identity status has been successfully changed",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/IdentityUpdateStatusResponse"
                }
              }
            }
          },
          "400": {
            "description": "Bad request model data",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "401": {
            "description": "User with such auth identifier is not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "403": {
            "description": "Not authorized to access this identity",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          },
          "404": {
            "description": "Identity was not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProblemDetails"
                }
              }
            }
          }
        },
        "security": [
          {
            "Bearer": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "IdentityStatusModel": {
        "enum": [
          "active",
          "inactive"
        ],
        "type": "string"
      },
      "IdentityStatusResponse": {
        "enum": [
          "active",
          "inactive",
          "inactivationStarted"
        ],
        "type": "string"
      },
      "IdentityUpdateStatusModel": {
        "type": "object",
        "properties": {
          "status": {
            "$ref": "#/components/schemas/IdentityStatusModel"
          }
        },
        "additionalProperties": false
      },
      "IdentityUpdateStatusResponse": {
        "type": "object",
        "properties": {
          "state": {
            "$ref": "#/components/schemas/IdentityStatusResponse"
          }
        },
        "additionalProperties": false
      },
      "ProblemDetails": {
        "type": "object",
        "properties": {
          "type": {
            "type": "string",
            "nullable": true
          },
          "title": {
            "type": "string",
            "nullable": true
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "detail": {
            "type": "string",
            "nullable": true
          },
          "instance": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": {}
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "apiKey",
        "description": "Put access token in the box below.<br>For example: <b>Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImtpZCI6I</b>",
        "name": "Authorization",
        "in": "header"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  }
}
```