configurations

Edit Custom Code

Changed on

Modify a configuration's custom code based on system_key/code pair.

Args: configuration_id (UUID): The ID of the configuration to modify. body (UpdateCustomCodeInput): User-provided object containing custom code info. user (dict[str, Any]): The logged-in user. db (AsyncDatabaseConnection): The database connection. logger (Logger): The system logger.

Raises: HTTPException: 409 if configuration is not a draft and therefore not editable HTTPException: 500 if the configuration can't be updated

Returns: ConfigurationCustomCodeResponse: The updated configuration.

put/api/v1/configurations/{configuration_id}/custom-codes

Request

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

Path parameters

configuration_id, string uuid required

Request body

UpdateCustomCodeInput required

Input model when updating a config's custom code.

id, string uuid required
system_id, string uuid required
code, string required
display_name, string required

Response

Successful Response

CustomCodeResponse required

Custom code object to return to the client.

id, string uuid required
display_name, string required
code, string required
system_id, string uuid required
system_display_name, string required

Changes

    • breaking

      added the new required request property display_name

    • breaking

      removed the required property display from the response with the status

    • breaking

      removed the required property system_name from the response with the status

    3 more changes in this revision