---
updatedAt: 2026-08-18T18:39:20.000Z
agentTools:
  projectIndex: https://stockpit.readme.io/llms.txt
---

# Mutations

See the [Queries](/reference/user-profile-queries) page for a presentation of this resource.

There is currently no public mutation available on the UserProfile entity. The following operations are internal only and are not exposed through the public API:

* CreateUserProfile
* CreateUserProfileFromPartner
* UpdateUserProfile
* DisableUserProfile
* EnableUserProfile
* GenerateApiToken
* DeleteApiToken
* SwitchUserProfile
* ImpersonateUserProfile
* ImpersonateB2bStoreUserProfile
* StopImpersonateUserProfile

<br />

***

# Input data types

## UserProfileInput data type

| id <span style={{ fontWeight: "normal" }}>- [Int](/reference/data-types#int) </span> |
| :----------------------------------------------------------------------------------- |
| Id of the user profile                                                               |

| user\_id <span style={{ fontWeight: "normal" }}>- [Int](/reference/data-types#int) </span> |
| :----------------------------------------------------------------------------------------- |
| Id of the user linked to the user profile                                                  |

| company\_id <span style={{ fontWeight: "normal" }}>- [Int](/reference/data-types#int) </span> |
| :-------------------------------------------------------------------------------------------- |
| Id of the company the user profile belongs to                                                 |

| active <span style={{ fontWeight: "normal" }}>- [Boolean](/reference/data-types#boolean) </span> |
| :----------------------------------------------------------------------------------------------- |
| If true, the user profile is active                                                              |

| label <span style={{ fontWeight: "normal" }}>- [String](/reference/data-types#string) </span> |
| :-------------------------------------------------------------------------------------------- |
| Label of the user profile                                                                     |

| permissions <span style={{ fontWeight: "normal" }}>- Array of [String](/reference/data-types#string) </span> |
| :----------------------------------------------------------------------------------------------------------- |
| Permissions granted to the user profile                                                                      |

| user <span style={{ fontWeight: "normal" }}>- [UserInput](/reference/user-mutations#userinput-data-type) </span> |
| :--------------------------------------------------------------------------------------------------------------- |
| User linked to the user profile                                                                                  |