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_id, string uuid required

Request body

AddCustomCodeInput required

Input model for adding a custom code to a configuration.

code, string required
display, string required
system_id, string uuid required

Response

Successful Response

CustomCodeResponse required

Custom code object to return to the client.

id, string uuid required
display, string required
code, string required
system_id, string uuid required
system_name, string required

Changes

    • breaking

      added the new required request property display

    • breaking

      added the new required request property system_id

    • breaking

      removed the required property code_sets from the response with the status

    8 more changes in this revision