configurations

Add Custom Code

Changed on

Add a user-defined custom code to a configuration.

Args: configuration_id (UUID): The ID of the configuration to update. body (AddCustomCodeInput): The custom code information provided by the user. user (dict[str, Any]): The logged-in user. db (AsyncDatabaseConnection): The database connection.

Raises: HTTPException: 404 if configuration isn't found HTTPException: 409 if configuration is not a draft and therefore not editable HTTPException: 500 if custom code can't be added

Returns: ConfigurationCustomCodeResponse: Updated configuration

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

Request

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

Path parameters

configuration_idstring uuid required

Request body

codestring required
displaystring required
system_idstring uuid required

Response

Successful Response

idstring uuid required
displaystring required
codestring required
system_idstring uuid required
system_namestring required

Changes

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • breaking

      removed the required property from the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • info

      added the required property to the response with the status

    • breaking

      added the new required request property

    • breaking

      added the new required request property

    • breaking

      removed the required property // from the response with the status

    • breaking

      removed the required property // from the response with the status

    • warning

      removed the request property

    • warning

      removed the request property

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status