Add Problem
Add a newly defined problem to the database.
Args: request (Problem): the JSON representation of the problem. user (Annotated[User, Depends): the current user. session (Annotated[Session, Depends): the database session.
Note: Users with the role 'guest' may not add new problems.
Raises: HTTPException: when any issue with defining the problem arises.
Returns: ProblemInfo: the information about the problem added.
Response
Successful Response
Changes
Changed in 2 of the 2 revisions of this API.5126
- ▲
removed the request body
request-body-removed
- ▲
the response property
simulators/anyOf[subschema #1]/items/filebecame optional for the status200response-property-became-optional
- ▲
response property
simulators/anyOf[subschema #1]/items/filelist-of-types was widened by adding typesnullto media typeapplication/jsonof response200response-property-list-of-types-widened
- ○
the endpoint scheme security
APIKeyCookiewas added to the APIapi-security-added
- ○
removed the non-success response with the status
422response-non-success-status-removed
- ○
added the optional property
simulators/anyOf[subschema #1]/items/urlto the response with the200statusresponse-optional-property-added
- ○
added
Tensorto thetensor_variables/anyOf[subschema #1]/items/initial_valuesresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Tensorto thetensor_variables/anyOf[subschema #1]/items/lowerboundsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Tensorto thetensor_variables/anyOf[subschema #1]/items/upperboundsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Urlto theconstraints/anyOf[subschema #1]/items/simulator_pathresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Urlto theextra_funcs/anyOf[subschema #1]/items/simulator_pathresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Urlto theobjectives/items/simulator_pathresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
Tensor-Outputfrom thetensor_variables/anyOf[subschema #1]/items/initial_valuesresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Tensor-Outputfrom thetensor_variables/anyOf[subschema #1]/items/lowerboundsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Tensor-Outputfrom thetensor_variables/anyOf[subschema #1]/items/upperboundsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
added the required property
problem_metadatato the response with the200statusresponse-required-property-added
This revision also has 14 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲
- ▲
added required request body
request-body-added-required
- ▲
removed the required property
problem_metadatafrom the response with the200statusresponse-required-property-removed
- ●
removed the optional property
simulators/anyOf[subschema #1]/items/urlfrom the response with the200statusresponse-optional-property-removed
- ○
the endpoint scheme security
APIKeyCookiewas removed from the APIapi-security-removed
- ○
added the non-success response with the status
422response-non-success-status-added
- ○
added
Tensor-Outputto thetensor_variables/anyOf[subschema #1]/items/initial_valuesresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Tensor-Outputto thetensor_variables/anyOf[subschema #1]/items/lowerboundsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
added
Tensor-Outputto thetensor_variables/anyOf[subschema #1]/items/upperboundsresponse propertyanyOflist for the response status200response-property-any-of-added
- ○
removed
Tensorfrom thetensor_variables/anyOf[subschema #1]/items/initial_valuesresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Tensorfrom thetensor_variables/anyOf[subschema #1]/items/lowerboundsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Tensorfrom thetensor_variables/anyOf[subschema #1]/items/upperboundsresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Urlfrom theconstraints/anyOf[subschema #1]/items/simulator_pathresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Urlfrom theextra_funcs/anyOf[subschema #1]/items/simulator_pathresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
removed
Urlfrom theobjectives/items/simulator_pathresponse propertyanyOflist for the response status200response-property-any-of-removed
- ○
the response property
simulators/anyOf[subschema #1]/items/filebecame required for the status200response-property-became-required
- ○
response property
simulators/anyOf[subschema #1]/items/filelist-of-types was narrowed by removing typesnullfrom media typeapplication/jsonof response200response-property-list-of-types-narrowed
This revision also has 103 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲