configurations

Validate Custom Code

Changed on

Determines whether a custom code update is valid or not.

If the desired code is already associated with the configuration, then the update is invalid.

Args: configuration_id (UUID): The configuration ID body (ValidateCustomCodeInput): Body including the code to validate user (DbUser, optional): The logged in user db (AsyncDatabaseConnection, optional): The database connection

Returns: bool: Returns True if the code has not been used, otherwise returns False

post/api/v1/configurations/{configuration_id}/custom-codes/validate

Request

  • The document declares no server URL.
  • Auth
    none declared

Path parameters

configuration_id, string uuid required

Request body

ValidateCustomCodeInput required

Input model when validating a config's custom code.

current_code, string nullable required
desired_code, string required

Response

Successful Response

ValidateCustomCodeResponse required

Validation response model.

valid, boolean required

Changes