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_idstring uuid required

Request body

current_codestring nullable required
desired_codestring required

Response

Successful Response

validboolean required

Changes