original_docstring: 
      Submit a manifest for storage.
      
docstring: Submit a manifest for storage.
docstring_tokens: Submit a manifest for storage .
code: def submit_manifest(
      request: Request,
      data: ValidateManifestRequest = Body(...),
      schema: Any = Depends(get_description_schema),
  ) -> ManifestSubmitResponse:
      """
      Submit a manifest for storage.
      """
      manifest, validation = _validate_manifest(data, schema)
      if not manifest or validation.status == ResponseStatus.FAIL:
          raise HTTPException(
              status_code=status.HTTP_400_BAD_REQUEST, detail=validation.details
          )
      api_manifest = Manifest(
          manifest_hash=write_json_object(manifest.crypto_hash()),
          manifest=manifest.to_json_object(),
      )
      return set_manifest(api_manifest, request.app.state.settings)
code_tokens: def submit_manifest ( request : Request , data : ValidateManifestRequest = Body ( ... ) , schema : Any = Depends ( get_description_schema ) , ) -> ManifestSubmitResponse : manifest , validation = _validate_manifest ( data , schema ) if not manifest or validation . status == ResponseStatus . FAIL : raise HTTPException ( status_code = status . HTTP_400_BAD_REQUEST , detail = validation . details ) api_manifest = Manifest ( manifest_hash = write_json_object ( manifest . crypto_hash ( ) ) , manifest = manifest . to_json_object ( ) , ) return set_manifest ( api_manifest , request . app . state . settings )
short_docstring: Submit a manifest for storage.
short_docstring_tokens: Submit a manifest for storage .
comment: """
      Submit a manifest for storage.
      """