Skip to main content

attack_challenge_mode

Creates, updates, deletes, gets or lists an attack_challenge_mode resource.

Overview

Nameattack_challenge_mode
TypeResource
Idvercel.security.attack_challenge_mode

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
updateupdateproject_id, attack_mode_enabled, attack_mode_active_untilteam_id, slugUpdate the setting for determining if the project has Attack Challenge mode enabled.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
slugstringThe Team slug to perform the request on behalf of.
team_idstringThe Team identifier to perform the request on behalf of. (wire: teamId)

UPDATE examples

Update the setting for determining if the project has Attack Challenge mode enabled.

UPDATE vercel.security.attack_challenge_mode
SET
project_id = '{{ project_id }}',
attack_mode_enabled = {{ attack_mode_enabled }},
attack_mode_active_until = {{ attack_mode_active_until }}
WHERE
project_id = '{{ project_id }}' --required
AND attack_mode_enabled = {{ attack_mode_enabled }} --required
AND attack_mode_active_until = '{{ attack_mode_active_until }}' --required
AND team_id = '{{ team_id}}'
AND slug = '{{ slug}}'
RETURNING
attack_mode_enabled,
attack_mode_updated_at;