Hooks

Update hook details by ID with the given data.

patch/api/hooks/{id}

Request

  • Base URL: https://[tenant_id].logto.app
  • URL: https://[tenant_id].logto.app/api/hooks/{id}
  • Auth: OAuth 2 (client credentials, token URL /oidc/token, scopes: all)

Path parameters

idstring required

The unique identifier of the hook.

Request body

tenantIdstring
namestring

The updated name of the hook.

event'PostRegister' | 'PostSignIn' | 'PostSignInAdaptiveMfaTriggered' | 'PostResetPassword' | 'User.Created' | 'User.Deleted' | 'User.Data.Updated' | 'User.SuspensionStatus.Updated' | 'TrustedDevice.Created' | 'TrustedDevice.Deleted' | 'Role.Created' | 'Role.Deleted' | 'Role.Data.Updated' | 'Role.Scopes.Updated' | 'Scope.Created' | 'Scope.Deleted' | 'Scope.Data.Updated' | 'Organization.Created' | 'Organization.Deleted' | 'Organization.Data.Updated' | 'Organization.Membership.Updated' | 'OrganizationRole.Created' | 'OrganizationRole.Deleted' | 'OrganizationRole.Data.Updated' | 'OrganizationRole.Scopes.Updated' | 'OrganizationScope.Created' | 'OrganizationScope.Deleted' | 'OrganizationScope.Data.Updated' | 'Identifier.Lockout' | 'Message.RateLimited' | 'Grant.LimitExceeded' nullable

Use events instead.

eventsstring[]

An array of updated hook events.

enabledboolean
createdAtnumber

Response

The hook was updated successfully.

tenantIdstring required
idstring required
namestring required
event'PostRegister' | 'PostSignIn' | 'PostSignInAdaptiveMfaTriggered' | 'PostResetPassword' | 'User.Created' | 'User.Deleted' | 'User.Data.Updated' | 'User.SuspensionStatus.Updated' | 'TrustedDevice.Created' | 'TrustedDevice.Deleted' | 'Role.Created' | 'Role.Deleted' | 'Role.Data.Updated' | 'Role.Scopes.Updated' | 'Scope.Created' | 'Scope.Deleted' | 'Scope.Data.Updated' | 'Organization.Created' | 'Organization.Deleted' | 'Organization.Data.Updated' | 'Organization.Membership.Updated' | 'OrganizationRole.Created' | 'OrganizationRole.Deleted' | 'OrganizationRole.Data.Updated' | 'OrganizationRole.Scopes.Updated' | 'OrganizationScope.Created' | 'OrganizationScope.Deleted' | 'OrganizationScope.Data.Updated' | 'Identifier.Lockout' | 'Message.RateLimited' | 'Grant.LimitExceeded' nullable required
eventsstring[] required
signingKeystring required
enabledboolean required
createdAtnumber required

Changes

    • warning

      added the new TrustedDevice.Created enum value to the response property for the response status

    • warning

      added the new TrustedDevice.Created enum value to the / response property for the response status

    • warning

      added the new TrustedDevice.Deleted enum value to the response property for the response status

    • warning

      added the new TrustedDevice.Deleted enum value to the / response property for the response status

    • info

      added the new TrustedDevice.Created enum value to the request property

    • info

      added the new TrustedDevice.Created enum value to the request property /

    • info

      added the new TrustedDevice.Deleted enum value to the request property

    • info

      added the new TrustedDevice.Deleted enum value to the request property /