Mutations
Questi contenuti non sono ancora disponibili nella tua lingua.
This reference is auto-generated from the GraphQL schema.
auth
init_verification_flow
Begin email verification
Arguments:
| Argument | Type | Description |
|---|---|---|
email | String | — |
force | Boolean | — |
Returns: auth_flow!
login
Sign in with email and password
Arguments:
| Argument | Type | Description |
|---|---|---|
email | String! | — |
password | String! | — |
referral_code | String | — |
Returns: auth_result!
logout
Revoke all sessions for the current user
Returns: logout_output!
register
Create an account with email and password
Arguments:
| Argument | Type | Description |
|---|---|---|
email | String! | — |
name | String! | — |
password | String! | — |
referral_code | String | — |
Returns: auth_result!
request_password_reset
Send a password reset email
Arguments:
| Argument | Type | Description |
|---|---|---|
email | String! | — |
Returns: auth_result!
reset_password
Set a new password using the emailed code
Arguments:
| Argument | Type | Description |
|---|---|---|
code | String! | — |
email | String! | — |
newPassword | String! | — |
Returns: auth_result!
submit_verification_code
Submit an email verification code
Arguments:
| Argument | Type | Description |
|---|---|---|
code | String! | — |
csrf_token | String! | — |
flowId | String! | — |
Returns: auth_result!
account
cancel_account_deletion
Cancel a scheduled account deletion during the grace period.
Returns: cancel_account_deletion_output!
change_avatar
Update your profile picture
Arguments:
| Argument | Type | Description |
|---|---|---|
avatar_url | String! | — |
Returns: change_avatar_output!
change_name
Update your display name
Arguments:
| Argument | Type | Description |
|---|---|---|
name | String! | — |
Returns: change_name_output!
change_password
Change your password
Arguments:
| Argument | Type | Description |
|---|---|---|
current_password | String! | — |
new_password | String! | — |
Returns: change_password_output!
confirm_account_deletion
Confirm and schedule account deletion from the emailed link.
Arguments:
| Argument | Type | Description |
|---|---|---|
token | String! | — |
Returns: confirm_account_deletion_output!
request_account_deletion
Send an email link to confirm account deletion. No changes are made until the link is clicked.
Returns: request_account_deletion_output!
request_avatar_upload
Request an upload URL for a profile picture
Arguments:
| Argument | Type | Description |
|---|---|---|
content_type | String! | — |
filename | String! | — |
Returns: request_avatar_upload_output!
assets
abort_multipart_upload
Cancel an in-progress multi-part upload
Arguments:
| Argument | Type | Description |
|---|---|---|
key | String! | — |
upload_id | String! | — |
Returns: abort_multipart_upload_output!
complete_multipart_upload
Finalize a multi-part upload and register the asset
Arguments:
| Argument | Type | Description |
|---|---|---|
content_type | String! | — |
key | String! | — |
parts | [multipart_part_input!]! | — |
tags | [String!] | — |
upload_id | String! | — |
Returns: create_asset_output!
create_asset
Register an uploaded file as an asset
Arguments:
| Argument | Type | Description |
|---|---|---|
key | String! | — |
tags | [String!] | — |
Returns: create_asset_output!
delete_asset
Delete an asset
Arguments:
| Argument | Type | Description |
|---|---|---|
id | uuid! | — |
Returns: delete_asset_output!
request_multipart_upload
Request upload URLs for a large file sent in multiple parts
Arguments:
| Argument | Type | Description |
|---|---|---|
content_type | String! | — |
filename | String! | — |
part_size | bigint | — |
total_size | bigint! | — |
Returns: request_multipart_upload_output!
request_upload
Request a direct upload URL for a file
Arguments:
| Argument | Type | Description |
|---|---|---|
content_type | String! | — |
filename | String! | — |
Returns: request_upload_output!
update_assets
update data of the table: “assets”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | assets_set_input | sets the columns of the filtered rows to the given values |
where | assets_bool_exp! | filter the rows which have to be updated |
Returns: assets_mutation_response
update_assets_by_pk
update single row of the table: “assets”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | assets_set_input | sets the columns of the filtered rows to the given values |
pk_columns | assets_pk_columns_input! | — |
Returns: assets
update_assets_many
update multiples rows of table: “assets”
Arguments:
| Argument | Type | Description |
|---|---|---|
updates | [assets_updates!]! | updates to execute, in order |
Returns: [assets_mutation_response]
pipeline_runs
cancel_pipeline_run
Cancel a running pipeline and refund credits
Arguments:
| Argument | Type | Description |
|---|---|---|
run_id | String! | — |
Returns: cancel_pipeline_run_output
run_pipeline
Start a pipeline run
Arguments:
| Argument | Type | Description |
|---|---|---|
input | jsonb! | — |
pipeline_slug | String! | — |
Returns: run_pipeline_output
update_pipeline_runs
update data of the table: “pipeline_runs”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | pipeline_runs_set_input | sets the columns of the filtered rows to the given values |
where | pipeline_runs_bool_exp! | filter the rows which have to be updated |
Returns: pipeline_runs_mutation_response
update_pipeline_runs_by_pk
update single row of the table: “pipeline_runs”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | pipeline_runs_set_input | sets the columns of the filtered rows to the given values |
pk_columns | pipeline_runs_pk_columns_input! | — |
Returns: pipeline_runs
update_pipeline_runs_many
update multiples rows of table: “pipeline_runs”
Arguments:
| Argument | Type | Description |
|---|---|---|
updates | [pipeline_runs_updates!]! | updates to execute, in order |
Returns: [pipeline_runs_mutation_response]
billing
cancel_subscription
Cancel your subscription at the end of the current billing period
Returns: cancel_subscription_output!
create_checkout_session
Create a Whop checkout session with the buyer’s user_id baked into metadata
Arguments:
| Argument | Type | Description |
|---|---|---|
affiliate_code | String | — |
whop_plan_id | String! | — |
Returns: create_checkout_session_output!
personal_access_tokens
create_personal_access_token
Create a personal access token for API and MCP access
Arguments:
| Argument | Type | Description |
|---|---|---|
name | String! | — |
Returns: create_personal_access_token_output!
revoke_personal_access_token
Revoke a personal access token
Arguments:
| Argument | Type | Description |
|---|---|---|
id | uuid! | — |
Returns: revoke_personal_access_token_output!
notifications
delete_notifications
delete data from the table: “notifications”
Arguments:
| Argument | Type | Description |
|---|---|---|
where | notifications_bool_exp! | filter the rows which have to be deleted |
Returns: notifications_mutation_response
delete_notifications_by_pk
delete single row from the table: “notifications”
Arguments:
| Argument | Type | Description |
|---|---|---|
id | uuid! | — |
Returns: notifications
update_notifications
update data of the table: “notifications”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | notifications_set_input | sets the columns of the filtered rows to the given values |
where | notifications_bool_exp! | filter the rows which have to be updated |
Returns: notifications_mutation_response
update_notifications_by_pk
update single row of the table: “notifications”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | notifications_set_input | sets the columns of the filtered rows to the given values |
pk_columns | notifications_pk_columns_input! | — |
Returns: notifications
update_notifications_many
update multiples rows of table: “notifications”
Arguments:
| Argument | Type | Description |
|---|---|---|
updates | [notifications_updates!]! | updates to execute, in order |
Returns: [notifications_mutation_response]
affiliate_codes
add_affiliate_code
Add a new primary affiliate code
Arguments:
| Argument | Type | Description |
|---|---|---|
code | String! | — |
redirect_path | String | — |
Returns: add_affiliate_code_output!
ensure_affiliate
Create an affiliate profile and referral code for the current user if missing
Returns: ensure_affiliate_output!
update_affiliate_codes
update data of the table: “affiliate_codes”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | affiliate_codes_set_input | sets the columns of the filtered rows to the given values |
where | affiliate_codes_bool_exp! | filter the rows which have to be updated |
Returns: affiliate_codes_mutation_response
update_affiliate_codes_by_pk
update single row of the table: “affiliate_codes”
Arguments:
| Argument | Type | Description |
|---|---|---|
_set | affiliate_codes_set_input | sets the columns of the filtered rows to the given values |
pk_columns | affiliate_codes_pk_columns_input! | — |
Returns: affiliate_codes
update_affiliate_codes_many
update multiples rows of table: “affiliate_codes”
Arguments:
| Argument | Type | Description |
|---|---|---|
updates | [affiliate_codes_updates!]! | updates to execute, in order |
Returns: [affiliate_codes_mutation_response]