Add Custom Code
Changed onAdd 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
Request
- The document declares no server URL.
- Authnone declared
Path parameters
Request body
Input model for adding a custom code to a configuration.
Response
Successful Response
Custom code object to return to the client.
Changes
- breaking
added the new required request property
display_name - breaking
removed the required property
displayfrom the response with the status - breaking
removed the required property
system_namefrom the response with the status
3 more changes in this revision
- breaking