Pular para o conteúdo

Mutations

Este conteúdo não está disponível em sua língua ainda.

This reference is auto-generated from the GraphQL schema.

auth

init_verification_flow

Begin email verification

Arguments:

ArgumentTypeDescription
emailString
forceBoolean

Returns: auth_flow!


login

Sign in with email and password

Arguments:

ArgumentTypeDescription
emailString!
passwordString!
referral_codeString

Returns: auth_result!


logout

Revoke all sessions for the current user

Returns: logout_output!


register

Create an account with email and password

Arguments:

ArgumentTypeDescription
emailString!
nameString!
passwordString!
referral_codeString

Returns: auth_result!


request_password_reset

Send a password reset email

Arguments:

ArgumentTypeDescription
emailString!

Returns: auth_result!


reset_password

Set a new password using the emailed code

Arguments:

ArgumentTypeDescription
codeString!
emailString!
newPasswordString!

Returns: auth_result!


submit_verification_code

Submit an email verification code

Arguments:

ArgumentTypeDescription
codeString!
csrf_tokenString!
flowIdString!

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:

ArgumentTypeDescription
avatar_urlString!

Returns: change_avatar_output!


change_name

Update your display name

Arguments:

ArgumentTypeDescription
nameString!

Returns: change_name_output!


change_password

Change your password

Arguments:

ArgumentTypeDescription
current_passwordString!
new_passwordString!

Returns: change_password_output!


confirm_account_deletion

Confirm and schedule account deletion from the emailed link.

Arguments:

ArgumentTypeDescription
tokenString!

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:

ArgumentTypeDescription
content_typeString!
filenameString!

Returns: request_avatar_upload_output!


assets

abort_multipart_upload

Cancel an in-progress multi-part upload

Arguments:

ArgumentTypeDescription
keyString!
upload_idString!

Returns: abort_multipart_upload_output!


complete_multipart_upload

Finalize a multi-part upload and register the asset

Arguments:

ArgumentTypeDescription
content_typeString!
keyString!
parts[multipart_part_input!]!
tags[String!]
upload_idString!

Returns: create_asset_output!


create_asset

Register an uploaded file as an asset

Arguments:

ArgumentTypeDescription
keyString!
tags[String!]

Returns: create_asset_output!


delete_asset

Delete an asset

Arguments:

ArgumentTypeDescription
iduuid!

Returns: delete_asset_output!


request_multipart_upload

Request upload URLs for a large file sent in multiple parts

Arguments:

ArgumentTypeDescription
content_typeString!
filenameString!
part_sizebigint
total_sizebigint!

Returns: request_multipart_upload_output!


request_upload

Request a direct upload URL for a file

Arguments:

ArgumentTypeDescription
content_typeString!
filenameString!

Returns: request_upload_output!


update_assets

update data of the table: “assets”

Arguments:

ArgumentTypeDescription
_setassets_set_inputsets the columns of the filtered rows to the given values
whereassets_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:

ArgumentTypeDescription
_setassets_set_inputsets the columns of the filtered rows to the given values
pk_columnsassets_pk_columns_input!

Returns: assets


update_assets_many

update multiples rows of table: “assets”

Arguments:

ArgumentTypeDescription
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:

ArgumentTypeDescription
run_idString!

Returns: cancel_pipeline_run_output


run_pipeline

Start a pipeline run

Arguments:

ArgumentTypeDescription
inputjsonb!
pipeline_slugString!

Returns: run_pipeline_output


update_pipeline_runs

update data of the table: “pipeline_runs”

Arguments:

ArgumentTypeDescription
_setpipeline_runs_set_inputsets the columns of the filtered rows to the given values
wherepipeline_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:

ArgumentTypeDescription
_setpipeline_runs_set_inputsets the columns of the filtered rows to the given values
pk_columnspipeline_runs_pk_columns_input!

Returns: pipeline_runs


update_pipeline_runs_many

update multiples rows of table: “pipeline_runs”

Arguments:

ArgumentTypeDescription
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:

ArgumentTypeDescription
affiliate_codeString
whop_plan_idString!

Returns: create_checkout_session_output!


personal_access_tokens

create_personal_access_token

Create a personal access token for API and MCP access

Arguments:

ArgumentTypeDescription
nameString!

Returns: create_personal_access_token_output!


revoke_personal_access_token

Revoke a personal access token

Arguments:

ArgumentTypeDescription
iduuid!

Returns: revoke_personal_access_token_output!


notifications

delete_notifications

delete data from the table: “notifications”

Arguments:

ArgumentTypeDescription
wherenotifications_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:

ArgumentTypeDescription
iduuid!

Returns: notifications


update_notifications

update data of the table: “notifications”

Arguments:

ArgumentTypeDescription
_setnotifications_set_inputsets the columns of the filtered rows to the given values
wherenotifications_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:

ArgumentTypeDescription
_setnotifications_set_inputsets the columns of the filtered rows to the given values
pk_columnsnotifications_pk_columns_input!

Returns: notifications


update_notifications_many

update multiples rows of table: “notifications”

Arguments:

ArgumentTypeDescription
updates[notifications_updates!]!updates to execute, in order

Returns: [notifications_mutation_response]


affiliate_codes

add_affiliate_code

Add a new primary affiliate code

Arguments:

ArgumentTypeDescription
codeString!
redirect_pathString

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:

ArgumentTypeDescription
_setaffiliate_codes_set_inputsets the columns of the filtered rows to the given values
whereaffiliate_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:

ArgumentTypeDescription
_setaffiliate_codes_set_inputsets the columns of the filtered rows to the given values
pk_columnsaffiliate_codes_pk_columns_input!

Returns: affiliate_codes


update_affiliate_codes_many

update multiples rows of table: “affiliate_codes”

Arguments:

ArgumentTypeDescription
updates[affiliate_codes_updates!]!updates to execute, in order

Returns: [affiliate_codes_mutation_response]